From 885db72b8b4546572aaf7da08078176d2662d2d9 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 22 Apr 2012 21:32:35 +0200 Subject: gitscraper: support Python3. Make gitscraper and tarball script work with both Python 2 and Python 3. Tested with 2.7 and 3.2. Change-Id: I31b2580660d764d013bca6fe59d5663ae9f7f5aa --- utils/common/tarball.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/common/tarball.py') diff --git a/utils/common/tarball.py b/utils/common/tarball.py index 57765a5..2e32776 100755 --- a/utils/common/tarball.py +++ b/utils/common/tarball.py @@ -5,7 +5,7 @@ import os import sys if len(sys.argv) < 2: - print "Usage: %s " % sys.argv[0] + print("Usage: %s " % sys.argv[0]) sys.exit() repository = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../..") @@ -17,7 +17,7 @@ if '.' in sys.argv[1]: if ref in refs: tree = refs[ref] else: - print "Could not find hash for version!" + print("Could not find hash for version!") sys.exit() else: tree = sys.argv[1] @@ -25,6 +25,6 @@ else: gitscraper.archive_files(repository, tree, [], basename, archive="7z") -print "done." +print("done.") -- cgit v1.1