diff options
Diffstat (limited to 'buildtools/check_license_headers.py')
| -rwxr-xr-x | buildtools/check_license_headers.py | 5 |
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 = [ |
