diff options
author | Guido van Rossum <guido@python.org> | 2007-02-09 05:37:30 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-09 05:37:30 +0000 |
commit | be19ed77ddb047e02fe94d142181062af6d99dcc (patch) | |
tree | 70f214e06554046fcccbadeb78665f25e07ce965 /Lib/mhlib.py | |
parent | 452bf519a70c3db0e7f0d2540b1bfb07d9085583 (diff) | |
download | cpython-git-be19ed77ddb047e02fe94d142181062af6d99dcc.tar.gz |
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/mhlib.py')
-rw-r--r-- | Lib/mhlib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py index 8ae6bad1ee..bf9556c349 100644 --- a/Lib/mhlib.py +++ b/Lib/mhlib.py @@ -959,7 +959,7 @@ def test(): global mh, f os.system('rm -rf $HOME/Mail/@test') mh = MH() - def do(s): print s; print eval(s) + def do(s): print(s); print(eval(s)) do('mh.listfolders()') do('mh.listallfolders()') testfolders = ['@test', '@test/test1', '@test/test2', @@ -974,7 +974,7 @@ def test(): do('f.getsequences()') seqs = f.getsequences() seqs['foo'] = IntSet('1-10 12-20', ' ').tolist() - print seqs + print(seqs) f.putsequences(seqs) do('f.getsequences()') for t in reversed(testfolders): do('mh.deletefolder(%r)' % (t,)) @@ -990,10 +990,10 @@ def test(): try: do('f.parsesequence(%r)' % (seq,)) except Error as msg: - print "Error:", msg + print("Error:", msg) stuff = os.popen("pick %r 2>/dev/null" % (seq,)).read() list = map(int, stuff.split()) - print list, "<-- pick" + print(list, "<-- pick") do('f.listmessages()') |