summaryrefslogtreecommitdiffstats
path: root/core/tasks/check_boot_jars/check_boot_jars.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/tasks/check_boot_jars/check_boot_jars.py')
-rwxr-xr-xcore/tasks/check_boot_jars/check_boot_jars.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/tasks/check_boot_jars/check_boot_jars.py b/core/tasks/check_boot_jars/check_boot_jars.py
index 5a0ec40..cd0bd75 100755
--- a/core/tasks/check_boot_jars/check_boot_jars.py
+++ b/core/tasks/check_boot_jars/check_boot_jars.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+from __future__ import print_function
+
"""
Check boot jars.
@@ -55,15 +57,15 @@ def CheckJar(jar):
package_name = package_name.replace('/', '.')
# Skip class without a package name
if package_name and not whitelist_re.match(package_name):
- print >> sys.stderr, ('Error: %s: unknown package name of class file %s'
- % (jar, f))
+ print('Error: %s: unknown package name of class file %s'
+ % (jar, f), file=sys.stderr)
return False
return True
def main(argv):
if len(argv) < 2:
- print __doc__
+ print(__doc__)
return 1
if not LoadWhitelist(argv[0]):