summaryrefslogtreecommitdiff
path: root/utils/common/tarball.py
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-22 21:32:35 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-22 21:34:01 +0200
commit885db72b8b4546572aaf7da08078176d2662d2d9 (patch)
tree679466a7aea61dcd7a458a9155ad6a3ae4e7f270 /utils/common/tarball.py
parent0ca7b835953f67911a97518910d94ddd44363ba5 (diff)
downloadrockbox-885db72b8b4546572aaf7da08078176d2662d2d9.zip
rockbox-885db72b8b4546572aaf7da08078176d2662d2d9.tar.gz
rockbox-885db72b8b4546572aaf7da08078176d2662d2d9.tar.bz2
rockbox-885db72b8b4546572aaf7da08078176d2662d2d9.tar.xz
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
Diffstat (limited to 'utils/common/tarball.py')
-rwxr-xr-xutils/common/tarball.py6
1 files changed, 3 insertions, 3 deletions
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 <version|hash>" % sys.argv[0]
+ print("Usage: %s <version|hash>" % 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.")