diff options
author | Guido van Rossum <guido@python.org> | 2007-02-09 05:37:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-09 05:37:30 (GMT) |
commit | be19ed77ddb047e02fe94d142181062af6d99dcc (patch) | |
tree | 70f214e06554046fcccbadeb78665f25e07ce965 /Lib/plat-mac/applesingle.py | |
parent | 452bf519a70c3db0e7f0d2540b1bfb07d9085583 (diff) | |
download | cpython-be19ed77ddb047e02fe94d142181062af6d99dcc.zip cpython-be19ed77ddb047e02fe94d142181062af6d99dcc.tar.gz cpython-be19ed77ddb047e02fe94d142181062af6d99dcc.tar.bz2 |
Fix most trivially-findable print statements.
There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.
(Oh, and I don't know if the compiler package works.)
Diffstat (limited to 'Lib/plat-mac/applesingle.py')
-rw-r--r-- | Lib/plat-mac/applesingle.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/plat-mac/applesingle.py b/Lib/plat-mac/applesingle.py index fdd163d..2e0e967 100644 --- a/Lib/plat-mac/applesingle.py +++ b/Lib/plat-mac/applesingle.py @@ -51,9 +51,9 @@ class AppleSingle(object): except ValueError as arg: raise Error, "Unpack header error: %s" % (arg,) if verbose: - print 'Magic: 0x%8.8x' % (magic,) - print 'Version: 0x%8.8x' % (version,) - print 'Entries: %d' % (nentry,) + print('Magic: 0x%8.8x' % (magic,)) + print('Version: 0x%8.8x' % (version,)) + print('Entries: %d' % (nentry,)) if magic != AS_MAGIC: raise Error, "Unknown AppleSingle magic number 0x%8.8x" % (magic,) if version != AS_VERSION: @@ -68,7 +68,7 @@ class AppleSingle(object): except ValueError as arg: raise Error, "Unpack entry error: %s" % (arg,) if verbose: - print "Fork %d, offset %d, length %d" % (restype, offset, length) + print("Fork %d, offset %d, length %d" % (restype, offset, length)) fileobj.seek(offset) data = fileobj.read(length) if len(data) != length: @@ -124,7 +124,7 @@ def decode(infile, outpath, resonly=False, verbose=False): def _test(): if len(sys.argv) < 3 or sys.argv[1] == '-r' and len(sys.argv) != 4: - print 'Usage: applesingle.py [-r] applesinglefile decodedfile' + print('Usage: applesingle.py [-r] applesinglefile decodedfile') sys.exit(1) if sys.argv[1] == '-r': resonly = True |