summaryrefslogtreecommitdiffstats
path: root/tools/export.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/export.py')
-rwxr-xr-xtools/export.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/export.py b/tools/export.py
index 2d8d38e20..5e48a3613 100755
--- a/tools/export.py
+++ b/tools/export.py
@@ -12,7 +12,11 @@ import sys
pkgname = 'bcfg2'
ftphost = 'terra.mcs.anl.gov'
ftpdir = '/mcs/ftp/pub/bcfg'
-version = input("Please enter the version you are tagging (e.g. 1.0.0): ")
+# py3k compatibility
+try:
+ version = raw_input("Please enter the version you are tagging (e.g. 1.0.0): ")
+except NameError:
+ version = input("Please enter the version you are tagging (e.g. 1.0.0): ")
tarname = '/tmp/%s-%s.tar.gz' % (pkgname, version)
@@ -22,8 +26,13 @@ def run(command):
# update the version
majorver = version[:5]
minorver = version[5:]
-name = input("Your name: ")
-email = input("Your email: ")
+# py3k compatibility
+try:
+ name = raw_input("Your name: ")
+ email = raw_input("Your email: ")
+except NameError:
+ name = input("Your name: ")
+ email = input("Your email: ")
newchangelog = \
"""bcfg2 (%s-0.0%s) unstable; urgency=low