diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-08-13 14:54:12 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-08-13 14:54:12 (GMT) |
commit | f31d31373e96ce2b63e35ae297df39b55d5e4f57 (patch) | |
tree | 0829a017717439a81ea7ae79f6fc8ab3542f4bd5 /Lib/gzip.py | |
parent | 77f9caf633d8be5d83c2d33d6a36fef80f64bb99 (diff) | |
download | cpython-f31d31373e96ce2b63e35ae297df39b55d5e4f57.zip cpython-f31d31373e96ce2b63e35ae297df39b55d5e4f57.tar.gz cpython-f31d31373e96ce2b63e35ae297df39b55d5e4f57.tar.bz2 |
Remove redefinition of writelines() method
Remove unused variable and import
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 1985044..db1c8a6 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -141,9 +141,6 @@ class GzipFile: self.fileobj.write( self.compress.compress(data) ) self.offset += len(data) - def writelines(self,lines): - self.write(" ".join(lines)) - def read(self, size=-1): if self.extrasize <= 0 and self.fileobj is None: return '' @@ -305,7 +302,6 @@ class GzipFile: def readline(self, size=-1): if size < 0: size = sys.maxint bufs = [] - orig_size = size readsize = min(100, size) # Read from the file in small chunks while 1: if size == 0: @@ -352,7 +348,6 @@ def _test(): # Act like gzip; with -d, act like gunzip. # The input file is not deleted, however, nor are any other gzip # options or features supported. - import sys args = sys.argv[1:] decompress = args and args[0] == "-d" if decompress: |