diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-30 18:39:28 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-30 18:39:28 +0000 |
commit | e7bf59f500481715e76ff646f6728e28361faff2 (patch) | |
tree | 3f3dcd530272bb5be36089c3f2f3345ee373012f /Mac/scripts/buildpkg.py | |
parent | 716c3ac40cae880193dfdbda39a0ca7ed7cd2854 (diff) | |
download | cpython-e7bf59f500481715e76ff646f6728e28361faff2.tar.gz cpython-e7bf59f500481715e76ff646f6728e28361faff2.zip |
Run 2to3's print fixer over some places that had been missed.
Diffstat (limited to 'Mac/scripts/buildpkg.py')
-rw-r--r-- | Mac/scripts/buildpkg.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Mac/scripts/buildpkg.py b/Mac/scripts/buildpkg.py index e50c4058aad..73dd4b6dfca 100644 --- a/Mac/scripts/buildpkg.py +++ b/Mac/scripts/buildpkg.py @@ -417,18 +417,18 @@ def printUsage(): "Print usage message." format = "Usage: %s <opts1> [<opts2>] <root> [<resources>]" - print format % basename(sys.argv[0]) - print - print " with arguments:" - print " (mandatory) root: the package root folder" - print " (optional) resources: the package resources folder" - print - print " and options:" - print " (mandatory) opts1:" + print(format % basename(sys.argv[0])) + print() + print(" with arguments:") + print(" (mandatory) root: the package root folder") + print(" (optional) resources: the package resources folder") + print() + print(" and options:") + print(" (mandatory) opts1:") mandatoryKeys = string.split("Title Version Description", " ") for k in mandatoryKeys: - print " --%s" % k - print " (optional) opts2: (with default values)" + print(" --%s" % k) + print(" (optional) opts2: (with default values)") pmDefaults = PackageMaker.packageInfoDefaults optionalKeys = pmDefaults.keys() @@ -439,7 +439,7 @@ def printUsage(): for k in optionalKeys: format = " --%%s:%s %%s" format = format % (" " * (maxKeyLen-len(k))) - print format % (k, repr(pmDefaults[k])) + print(format % (k, repr(pmDefaults[k]))) def main(): @@ -452,7 +452,7 @@ def main(): try: opts, args = getopt.getopt(sys.argv[1:], shortOpts, longOpts) except getopt.GetoptError as details: - print details + print(details) printUsage() return @@ -462,11 +462,11 @@ def main(): ok = optsDict.keys() if not (1 <= len(args) <= 2): - print "No argument given!" + print("No argument given!") elif not ("Title" in ok and \ "Version" in ok and \ "Description" in ok): - print "Missing mandatory option!" + print("Missing mandatory option!") else: buildPackage(*args, **optsDict) return |