]> granicus.if.org Git - python/commitdiff
Fix typo in example found by Anthony Starks <anthony_starks@merck.com>,
authorFred Drake <fdrake@acm.org>
Wed, 6 May 1998 12:42:37 +0000 (12:42 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 6 May 1998 12:42:37 +0000 (12:42 +0000)
reported to me by Piers Lauder <piers@cs.su.oz.au>.

Doc/lib/libimaplib.tex
Doc/libimaplib.tex

index 4a6f94f449aae8cab25dc8395f2b55bb4a6baf55..fa3ec68dacfcdd9df71898598eb775131cd02f02 100644 (file)
@@ -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}
index 4a6f94f449aae8cab25dc8395f2b55bb4a6baf55..fa3ec68dacfcdd9df71898598eb775131cd02f02 100644 (file)
@@ -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}