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:
Fred Drake 1998-05-06 12:42:37 +00:00
parent 91aaa92c88
commit f7ffa92ce3
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ M.LOGIN(getpass.getuser(), getpass.getpass())
M.SELECT() M.SELECT()
typ, data = M.SEARCH(None, 'ALL') typ, data = M.SEARCH(None, 'ALL')
for num in string.split(data[0]): 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]) print 'Message %s\n%s\n' % (num, data[0][1])
M.LOGOUT() M.LOGOUT()
\end{verbatim} \end{verbatim}

View File

@ -222,7 +222,7 @@ M.LOGIN(getpass.getuser(), getpass.getpass())
M.SELECT() M.SELECT()
typ, data = M.SEARCH(None, 'ALL') typ, data = M.SEARCH(None, 'ALL')
for num in string.split(data[0]): 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]) print 'Message %s\n%s\n' % (num, data[0][1])
M.LOGOUT() M.LOGOUT()
\end{verbatim} \end{verbatim}