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/argvemulator.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/argvemulator.py')
-rw-r--r-- | Lib/plat-mac/argvemulator.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/plat-mac/argvemulator.py b/Lib/plat-mac/argvemulator.py index fe9e8f8..676e80a 100644 --- a/Lib/plat-mac/argvemulator.py +++ b/Lib/plat-mac/argvemulator.py @@ -37,7 +37,7 @@ class ArgvCollector: self._dooneevent(mask, timeout) if not self.quitting: - print "argvemulator: timeout waiting for arguments" + print("argvemulator: timeout waiting for arguments") self.close() @@ -54,12 +54,12 @@ class ArgvCollector: AE.AEProcessAppleEvent(event) except AE.Error as err: msg = "High Level Event: %r %r" % (hex(message), hex(h | (v<<16))) - print 'AE error: ', err - print 'in', msg + print('AE error: ', err) + print('in', msg) traceback.print_exc() return else: - print "Unhandled event:", event + print("Unhandled event:", event) def _quit(self): @@ -78,7 +78,7 @@ class ArgvCollector: pathname = fsref.as_pathname() sys.argv.append(pathname) except Exception as e: - print "argvemulator.py warning: can't unpack an open document event" + print("argvemulator.py warning: can't unpack an open document event") import traceback traceback.print_exc() @@ -86,4 +86,4 @@ class ArgvCollector: if __name__ == '__main__': ArgvCollector().mainloop() - print "sys.argv=", sys.argv + print("sys.argv=", sys.argv) |