[Python-checkins] python/dist/src/Lib UserString.py, 1.24,
1.25 gzip.py, 1.43, 1.44 subprocess.py, 1.19, 1.20 tarfile.py,
1.27, 1.28
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Mon Mar 28 03:08:05 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23805/Lib
Modified Files:
UserString.py gzip.py subprocess.py tarfile.py
Log Message:
Whitespace normalization.
Index: UserString.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserString.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- UserString.py 18 Feb 2005 13:22:43 -0000 1.24
+++ UserString.py 28 Mar 2005 01:08:02 -0000 1.25
@@ -147,12 +147,12 @@
raise TypeError, "unhashable type (it is mutable)"
def __setitem__(self, index, sub):
if index < 0:
- index += len(self.data)
+ index += len(self.data)
if index < 0 or index >= len(self.data): raise IndexError
self.data = self.data[:index] + sub + self.data[index+1:]
def __delitem__(self, index):
if index < 0:
- index += len(self.data)
+ index += len(self.data)
if index < 0 or index >= len(self.data): raise IndexError
self.data = self.data[:index] + self.data[index+1:]
def __setslice__(self, start, end, sub):
Index: gzip.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/gzip.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- gzip.py 3 Mar 2005 08:35:21 -0000 1.43
+++ gzip.py 28 Mar 2005 01:08:02 -0000 1.44
@@ -333,8 +333,8 @@
def flush(self,zlib_mode=zlib.Z_SYNC_FLUSH):
if self.mode == WRITE:
- # Ensure the compressor's buffer is flushed
- self.fileobj.write(self.compress.flush(zlib_mode))
+ # Ensure the compressor's buffer is flushed
+ self.fileobj.write(self.compress.flush(zlib_mode))
self.fileobj.flush()
def fileno(self):
Index: subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/subprocess.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- subprocess.py 3 Mar 2005 21:10:23 -0000 1.19
+++ subprocess.py 28 Mar 2005 01:08:02 -0000 1.20
@@ -626,14 +626,14 @@
process to terminate. The optional input argument should be a
string to be sent to the child process, or None, if no data
should be sent to the child.
-
+
communicate() returns a tuple (stdout, stderr)."""
# Optimization: If we are only using one pipe, or no pipe at
# all, using select() or threads is unnecessary.
if [self.stdin, self.stdout, self.stderr].count(None) >= 2:
- stdout = None
- stderr = None
+ stdout = None
+ stderr = None
if self.stdin:
if input:
self.stdin.write(input)
@@ -644,7 +644,7 @@
stderr = self.stderr.read()
self.wait()
return (stdout, stderr)
-
+
return self._communicate(input)
Index: tarfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- tarfile.py 5 Mar 2005 12:47:42 -0000 1.27
+++ tarfile.py 28 Mar 2005 01:08:02 -0000 1.28
@@ -665,7 +665,7 @@
if not result:
raise StopIteration
return result
-
+
#class ExFileObject
#------------------
More information about the Python-checkins
mailing list