summaryrefslogtreecommitdiff
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-09 05:37:30 +0000
committerGuido van Rossum <guido@python.org>2007-02-09 05:37:30 +0000
commite3092eaa8a5f3da2eb485fb5e49d7c731714ec1e (patch)
tree21847d71ce617166725fb1d94bf90dc6799a1a49 /Lib/mhlib.py
parent5139e90991014c04ec72a22dcc2625152ce7e612 (diff)
downloadcpython-e3092eaa8a5f3da2eb485fb5e49d7c731714ec1e.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.py8
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()')