[Python-checkins] CVS: python/dist/src/Lib imaplib.py,1.31,1.32 sre_compile.py,1.39,1.40
Tim Peters
tim_one@users.sourceforge.net
2001年7月20日 18:41:32 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1985/python/dist/src/Lib
Modified Files:
imaplib.py sre_compile.py
Log Message:
Whitespace normalization, plus:
+ test_quopri.py relied on significant trailing spaces. Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
Windows doesn't work like it does on Unix).
Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** imaplib.py 2001年07月20日 10:52:06 1.31
--- imaplib.py 2001年07月21日 01:41:30 1.32
***************
*** 567,574 ****
"""
name = 'SORT'
! #if not name in self.capabilities: # Let the server decide!
! # raise self.error('unimplemented extension command: %s' % name)
if (sort_criteria[0],sort_criteria[-1]) != ('(',')'):
! sort_criteria = '(%s)' % sort_criteria
typ, dat = apply(self._simple_command, (name, sort_criteria, charset) + search_criteria)
return self._untagged_response(typ, dat, name)
--- 567,574 ----
"""
name = 'SORT'
! #if not name in self.capabilities: # Let the server decide!
! # raise self.error('unimplemented extension command: %s' % name)
if (sort_criteria[0],sort_criteria[-1]) != ('(',')'):
! sort_criteria = '(%s)' % sort_criteria
typ, dat = apply(self._simple_command, (name, sort_criteria, charset) + search_criteria)
return self._untagged_response(typ, dat, name)
***************
*** 581,585 ****
"""
name = 'STATUS'
! #if self.PROTOCOL_VERSION == 'IMAP4': # Let the server decide!
# raise self.error('%s unimplemented in IMAP4 (obtain IMAP4rev1 server, or re-code)' % name)
typ, dat = self._simple_command(name, mailbox, names)
--- 581,585 ----
"""
name = 'STATUS'
! #if self.PROTOCOL_VERSION == 'IMAP4': # Let the server decide!
# raise self.error('%s unimplemented in IMAP4 (obtain IMAP4rev1 server, or re-code)' % name)
typ, dat = self._simple_command(name, mailbox, names)
***************
*** 648,652 ****
"""
name = name.upper()
! #if not name in self.capabilities: # Let the server decide!
# raise self.error('unknown extension command: %s' % name)
if not Commands.has_key(name):
--- 648,652 ----
"""
name = name.upper()
! #if not name in self.capabilities: # Let the server decide!
# raise self.error('unknown extension command: %s' % name)
if not Commands.has_key(name):
Index: sre_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_compile.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** sre_compile.py 2001年07月19日 14:26:10 1.39
--- sre_compile.py 2001年07月21日 01:41:30 1.40
***************
*** 287,291 ****
header.append(mapping[2*i]+256*mapping[2*i+1])
data[0:0] = header
! return [(BIGCHARSET, data)]
def _simple(av):
--- 287,291 ----
header.append(mapping[2*i]+256*mapping[2*i+1])
data[0:0] = header
! return [(BIGCHARSET, data)]
def _simple(av):