diff options
author | Peter Jones <pjones@redhat.com> | 2008-09-08 10:50:44 -0400 |
---|---|---|
committer | Peter Jones <pjones@vroomfondel.internal.datastacks.com> | 2008-09-08 11:21:02 -0400 |
commit | ce62c1c27adcf413e80f63faed8ea8f48bf357de (patch) | |
tree | f5c5354a434fc914297c2c61f643442215d2afb6 /scripts/makestamp.py | |
parent | b9a00e190355e1dce0bc905dc24e3007f8f6b7b1 (diff) | |
download | anaconda-ce62c1c27adcf413e80f63faed8ea8f48bf357de.tar.gz anaconda-ce62c1c27adcf413e80f63faed8ea8f48bf357de.tar.xz anaconda-ce62c1c27adcf413e80f63faed8ea8f48bf357de.zip |
Use print() as a function.
Diffstat (limited to 'scripts/makestamp.py')
-rwxr-xr-x | scripts/makestamp.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/makestamp.py b/scripts/makestamp.py index c3f416c02..5edb86ba0 100755 --- a/scripts/makestamp.py +++ b/scripts/makestamp.py @@ -27,7 +27,7 @@ def usage(): args = "" for key in data: args = "%s [--%s=%s]" %(args, key, key) - print "%s: %s" % (sys.argv[0], args) + print("%s: %s" % (sys.argv[0], args)) sys.exit(1) data = {"timestamp": None, @@ -44,7 +44,7 @@ opts.append("allDiscs") (args, extra) = getopt.getopt(sys.argv[1:], '', opts) if len(extra) > 0: - print "had extra args: %s" % extra + print("had extra args: %s" % extra) usage() for (str, arg) in args: @@ -53,25 +53,25 @@ for (str, arg) in args: elif str == "--allDiscs": allDiscs = 1 else: - print "unknown str of ", str + print("unknown str of ", str) usage() if data["timestamp"] is None: - print >> sys.stderr, "timestamp not specified; using the current time" + print("timestamp not specified; using the current time", file=sys.stderr) data["timestamp"] = time.time() else: data["timestamp"] = float(data["timestamp"]) if data["releasestr"] is None: - print "What should be the release name associated with this disc?" + print("What should be the release name associated with this disc?") data["releasestr"] = sys.stdin.readline()[:-1] if data["arch"] is None: - print "What arch is this disc for?" + print("What arch is this disc for?") data["arch"] = sys.stdin.readline()[:-1] if data["discNum"] is None and allDiscs is None: - print >> sys.stderr, "No disc number specified; assuming disc 1" + print("No disc number specified; assuming disc 1", file=sys.stderr) data["discNum"] = "1" if data["outfile"] is None: |