]> granicus.if.org Git - python/commitdiff
Remove redefinition of writelines() method
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 13 Aug 2001 14:54:12 +0000 (14:54 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 13 Aug 2001 14:54:12 +0000 (14:54 +0000)
Remove unused variable and import

Lib/gzip.py

index 198504433cfcc9bda938b6f590be694a60a00d95..db1c8a6473a99c4d03e6003dd8c69719edb9bc29 100644 (file)
@@ -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: