From: Fred Drake Date: Wed, 6 May 1998 12:42:37 +0000 (+0000) Subject: Fix typo in example found by Anthony Starks , X-Git-Tag: v1.5.2a1~755 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7ffa92ce3fdfa754e55dec61c3ab5ee0ec31982;p=thirdparty%2FPython%2Fcpython.git Fix typo in example found by Anthony Starks , reported to me by Piers Lauder . --- diff --git a/Doc/lib/libimaplib.tex b/Doc/lib/libimaplib.tex index 4a6f94f449aa..fa3ec68dacfc 100644 --- a/Doc/lib/libimaplib.tex +++ b/Doc/lib/libimaplib.tex @@ -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} diff --git a/Doc/libimaplib.tex b/Doc/libimaplib.tex index 4a6f94f449aa..fa3ec68dacfc 100644 --- a/Doc/libimaplib.tex +++ b/Doc/libimaplib.tex @@ -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}