mirror of
https://github.com/python/cpython.git
synced 2024-11-30 13:24:13 +08:00
Fix typo in example found by Anthony Starks <anthony_starks@merck.com>,
reported to me by Piers Lauder <piers@cs.su.oz.au>.
This commit is contained in:
parent
91aaa92c88
commit
f7ffa92ce3
@ -222,7 +222,7 @@ M.LOGIN(getpass.getuser(), getpass.getpass())
|
||||
M.SELECT()
|
||||
typ, data = M.SEARCH(None, 'ALL')
|
||||
for num in string.split(data[0]):
|
||||
typ, data - M.FETCH(num, '(RFC822)')
|
||||
typ, data = M.FETCH(num, '(RFC822)')
|
||||
print 'Message %s\n%s\n' % (num, data[0][1])
|
||||
M.LOGOUT()
|
||||
\end{verbatim}
|
||||
|
@ -222,7 +222,7 @@ M.LOGIN(getpass.getuser(), getpass.getpass())
|
||||
M.SELECT()
|
||||
typ, data = M.SEARCH(None, 'ALL')
|
||||
for num in string.split(data[0]):
|
||||
typ, data - M.FETCH(num, '(RFC822)')
|
||||
typ, data = M.FETCH(num, '(RFC822)')
|
||||
print 'Message %s\n%s\n' % (num, data[0][1])
|
||||
M.LOGOUT()
|
||||
\end{verbatim}
|
||||
|
Loading…
Reference in New Issue
Block a user