summaryrefslogtreecommitdiffstats
path: root/buildtools
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-11-10 10:28:21 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-11-10 10:28:21 +0000
commit4263cf74efbe5cceb6051378a7a4c16cfcaa05d8 (patch)
tree64db5e81da9a52a12db9a12b96d072adfc7a7d72 /buildtools
parentcheck-license-headers tweaks (diff)
downloadinkscape-4263cf74efbe5cceb6051378a7a4c16cfcaa05d8.tar.gz
inkscape-4263cf74efbe5cceb6051378a7a4c16cfcaa05d8.zip
check-license-headers Python 2 compatible
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/check_license_headers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildtools/check_license_headers.py b/buildtools/check_license_headers.py
index 7e05fa9f5..c7cb3d9f7 100755
--- a/buildtools/check_license_headers.py
+++ b/buildtools/check_license_headers.py
@@ -4,6 +4,8 @@
# Author: Max Gaukler <development@maxgaukler.de>
# Licensed under GPL version 2 or any later version, read the file "COPYING" for more information.
+from __future__ import print_function
+
import fnmatch
import os
import sys
@@ -11,6 +13,9 @@ import subprocess
license = {}
hasSPDX = {}
+if sys.version_info[0] < 3:
+ from io import open
+
# do not check licenses in these subdirectories:
# TODO: have look at the libraries' licenses
IGNORE_PATHS = [