[Python-checkins] python/dist/src/Lib imaplib.py,1.71,1.72

pierslauder at users.sourceforge.net pierslauder at users.sourceforge.net
Tue Aug 10 03:24:59 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2801/dist/src/Lib

Modified Files:
	imaplib.py 
Log Message:
Fix typo in getquotaroot parameter reported by Thierry FLORAC. Also amplify doc string for select to indicate proper way to obtain other responses.

Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** imaplib.py	27 Jul 2004 05:07:18 -0000	1.71
--- imaplib.py	10 Aug 2004 01:24:54 -0000	1.72
***************
*** 20,24 ****
  # PROXYAUTH contributed by Rick Holbert <holbert.13 at osu.edu> November 2002.
  
! __version__ = "2.54"
  
  import binascii, os, random, re, socket, sys, time
--- 20,24 ----
  # PROXYAUTH contributed by Rick Holbert <holbert.13 at osu.edu> November 2002.
  
! __version__ = "2.55"
  
  import binascii, os, random, re, socket, sys, time
***************
*** 453,457 ****
          (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox)
          """
!         typ, dat = self._simple_command('GETQUOTA', mailbox)
          typ, quota = self._untagged_response(typ, dat, 'QUOTA')
          typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
--- 453,457 ----
          (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox)
          """
!         typ, dat = self._simple_command('GETQUOTAROOT', mailbox)
          typ, quota = self._untagged_response(typ, dat, 'QUOTA')
          typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
***************
*** 612,617 ****
  
          'data' is count of messages in mailbox ('EXISTS' response).
          """
-         # Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY')
          self.untagged_responses = {}    # Flush old responses.
          self.is_readonly = readonly
--- 612,619 ----
  
          'data' is count of messages in mailbox ('EXISTS' response).
+ 
+         Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY'), so
+         other responses should be obtained via <instance>.response('FLAGS') etc.
          """
          self.untagged_responses = {}    # Flush old responses.
          self.is_readonly = readonly



More information about the Python-checkins mailing list