[Python-checkins] python/dist/src/Lib BaseHTTPServer.py,1.20,1.21 asynchat.py,1.17,1.18 fileinput.py,1.10,1.11 gzip.py,1.31,1.32 imaplib.py,1.45,1.46 os2emxpath.py,1.3,1.4 pre.py,1.11,1.12 re.py,1.42,1.43 rlcompleter.py,1.10,1.11 smtplib.py,1.52,1.53 warnings.py,1.11,1.12
tim_one@sourceforge.net
tim_one@sourceforge.net
Mon, 15 Apr 2002 18:38:42 -0700
- Previous message: [Python-checkins] python/dist/src/Lib warnings.py,1.10,1.11
- Next message: [Python-checkins] python/dist/src/Lib/test pickletester.py,1.14,1.15 string_tests.py,1.13,1.14 test_cfgparser.py,1.10,1.11 test_email.py,1.27,1.28 test_longexp.py,1.5,1.6 test_mpz.py,1.2,1.3 test_netrc.py,1.1,1.2 test_robotparser.py,1.1,1.2 test_types.py,1.27,1.28 test_unicode.py,1.54,1.55 test_univnewlines.py,1.1,1.2 test_urlparse.py,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv29959/python/Lib
Modified Files:
BaseHTTPServer.py asynchat.py fileinput.py gzip.py imaplib.py
os2emxpath.py pre.py re.py rlcompleter.py smtplib.py
warnings.py
Log Message:
Whitespace normalization.
Index: BaseHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/BaseHTTPServer.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** BaseHTTPServer.py 4 Apr 2002 22:55:58 -0000 1.20
--- BaseHTTPServer.py 16 Apr 2002 01:38:39 -0000 1.21
***************
*** 33,37 ****
# Request for Comments: 2616 et al
# Obsoletes: 2068 June 1999
! # Category: Standards Track
#
# URL: http://www.faqs.org/rfcs/rfc2616.html
--- 33,37 ----
# Request for Comments: 2616 et al
# Obsoletes: 2068 June 1999
! # Category: Standards Track
#
# URL: http://www.faqs.org/rfcs/rfc2616.html
Index: asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asynchat.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** asynchat.py 20 Mar 2002 02:22:58 -0000 1.17
--- asynchat.py 16 Apr 2002 01:38:39 -0000 1.18
***************
*** 67,74 ****
def collect_incoming_data(self, data):
raise NotImplementedError, "must be implemented in subclass"
!
def found_terminator(self):
raise NotImplementedError, "must be implemented in subclass"
!
def set_terminator (self, term):
"Set the input delimiter. Can be a fixed string of any length, an integer, or None"
--- 67,74 ----
def collect_incoming_data(self, data):
raise NotImplementedError, "must be implemented in subclass"
!
def found_terminator(self):
raise NotImplementedError, "must be implemented in subclass"
!
def set_terminator (self, term):
"Set the input delimiter. Can be a fixed string of any length, an integer, or None"
***************
*** 292,297 ****
def find_prefix_at_end (haystack, needle):
! l = len(needle) - 1
! while l and not haystack.endswith(needle[:l]):
! l -= 1
! return l
--- 292,297 ----
def find_prefix_at_end (haystack, needle):
! l = len(needle) - 1
! while l and not haystack.endswith(needle[:l]):
! l -= 1
! return l
Index: fileinput.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/fileinput.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** fileinput.py 7 Apr 2002 06:36:22 -0000 1.10
--- fileinput.py 16 Apr 2002 01:38:39 -0000 1.11
***************
*** 184,188 ****
raise StopIteration
return line
!
def __getitem__(self, i):
if i != self._lineno:
--- 184,188 ----
raise StopIteration
return line
!
def __getitem__(self, i):
if i != self._lineno:
Index: gzip.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/gzip.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** gzip.py 7 Apr 2002 06:36:22 -0000 1.31
--- gzip.py 16 Apr 2002 01:38:39 -0000 1.32
***************
*** 137,141 ****
import errno
raise IOError(errno.EBADF, "write() on read-only GzipFile object")
!
if self.fileobj is None:
raise ValueError, "write() on closed GzipFile object"
--- 137,141 ----
import errno
raise IOError(errno.EBADF, "write() on read-only GzipFile object")
!
if self.fileobj is None:
raise ValueError, "write() on closed GzipFile object"
***************
*** 150,154 ****
import errno
raise IOError(errno.EBADF, "write() on read-only GzipFile object")
!
if self.extrasize <= 0 and self.fileobj is None:
return ''
--- 150,154 ----
import errno
raise IOError(errno.EBADF, "write() on read-only GzipFile object")
!
if self.extrasize <= 0 and self.fileobj is None:
return ''
Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** imaplib.py 8 Mar 2002 09:05:12 -0000 1.45
--- imaplib.py 16 Apr 2002 01:38:39 -0000 1.46
***************
*** 1013,1017 ****
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect((self.host, self.port))
! self.sslobj = socket.ssl(self.sock,self.keyfile, self.certfile)
--- 1013,1017 ----
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect((self.host, self.port))
! self.sslobj = socket.ssl(self.sock,self.keyfile, self.certfile)
Index: os2emxpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os2emxpath.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** os2emxpath.py 7 Apr 2002 06:36:23 -0000 1.3
--- os2emxpath.py 16 Apr 2002 01:38:39 -0000 1.4
***************
*** 1,4 ****
# Module 'os2emxpath' -- common operations on OS/2 pathnames
! """Common pathname manipulations, OS/2 EMX version.
Instead of importing this module directly, import os and refer to this
--- 1,4 ----
# Module 'os2emxpath' -- common operations on OS/2 pathnames
! """Common pathname manipulations, OS/2 EMX version.
Instead of importing this module directly, import os and refer to this
Index: pre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pre.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** pre.py 10 Apr 2002 21:36:11 -0000 1.11
--- pre.py 16 Apr 2002 01:38:39 -0000 1.12
***************
*** 93,97 ****
_warnings.warn("Please use the 're' module, not the 'pre' module",
DeprecationWarning)
!
__all__ = ["match","search","sub","subn","split","findall","escape","compile",
"I","L","M","S","X","IGNORECASE","LOCALE","MULTILINE","DOTALL",
--- 93,97 ----
_warnings.warn("Please use the 're' module, not the 'pre' module",
DeprecationWarning)
!
__all__ = ["match","search","sub","subn","split","findall","escape","compile",
"I","L","M","S","X","IGNORECASE","LOCALE","MULTILINE","DOTALL",
Index: re.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/re.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** re.py 10 Apr 2002 21:15:40 -0000 1.42
--- re.py 16 Apr 2002 01:38:39 -0000 1.43
***************
*** 19,21 ****
from sre import *
from sre import __all__
-
--- 19,20 ----
Index: rlcompleter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rlcompleter.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** rlcompleter.py 23 Mar 2002 23:44:51 -0000 1.10
--- rlcompleter.py 16 Apr 2002 01:38:39 -0000 1.11
***************
*** 61,65 ****
readline.set_completer(Completer(my_namespace).complete)
"""
!
if namespace and not isinstance(namespace, dict):
raise TypeError,'namespace must be a dictionary'
--- 61,65 ----
readline.set_completer(Completer(my_namespace).complete)
"""
!
if namespace and not isinstance(namespace, dict):
raise TypeError,'namespace must be a dictionary'
***************
*** 83,87 ****
if self.use_main_ns:
self.namespace = __main__.__dict__
!
if state == 0:
if "." in text:
--- 83,87 ----
if self.use_main_ns:
self.namespace = __main__.__dict__
!
if state == 0:
if "." in text:
Index: smtplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/smtplib.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** smtplib.py 15 Apr 2002 20:03:30 -0000 1.52
--- smtplib.py 16 Apr 2002 01:38:39 -0000 1.53
***************
*** 228,233 ****
By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised
if the specified `host' doesn't respond correctly. If specified,
! `local_hostname` is used as the FQDN of the local host. By default,
! the local hostname is found using socket.getfqdn().
"""
--- 228,233 ----
By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised
if the specified `host' doesn't respond correctly. If specified,
! `local_hostname` is used as the FQDN of the local host. By default,
! the local hostname is found using socket.getfqdn().
"""
Index: warnings.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/warnings.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** warnings.py 16 Apr 2002 01:33:59 -0000 1.11
--- warnings.py 16 Apr 2002 01:38:39 -0000 1.12
***************
*** 14,18 ****
# Check if message is already a Warning object
if isinstance(message, Warning):
! category = message.__class__
# Check category argument
if category is None:
--- 14,18 ----
# Check if message is already a Warning object
if isinstance(message, Warning):
! category = message.__class__
# Check category argument
if category is None:
***************
*** 54,62 ****
registry = {}
if isinstance(message, Warning):
! text = str(message)
! category = message.__class__
else:
! text = message
! message = category(message)
key = (text, category, lineno)
# Quick test for common case
--- 54,62 ----
registry = {}
if isinstance(message, Warning):
! text = str(message)
! category = message.__class__
else:
! text = message
! message = category(message)
key = (text, category, lineno)
# Quick test for common case
- Previous message: [Python-checkins] python/dist/src/Lib warnings.py,1.10,1.11
- Next message: [Python-checkins] python/dist/src/Lib/test pickletester.py,1.14,1.15 string_tests.py,1.13,1.14 test_cfgparser.py,1.10,1.11 test_email.py,1.27,1.28 test_longexp.py,1.5,1.6 test_mpz.py,1.2,1.3 test_netrc.py,1.1,1.2 test_robotparser.py,1.1,1.2 test_types.py,1.27,1.28 test_unicode.py,1.54,1.55 test_univnewlines.py,1.1,1.2 test_urlparse.py,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]