Index: gzip.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/gzip.py,v retrieving revision 1.30 diff -u -c -r1.30 gzip.py *** gzip.py 20 Mar 2002 18:36:00 -0000 1.30 --- gzip.py 22 Mar 2002 08:03:11 -0000 *************** *** 192,198 **** # First, check if we're at the end of the file; # if so, it's time to stop; no more members to read. pos = self.fileobj.tell() # Save current position ! self.fileobj.seek(0, 2) # Seek to end of file if pos == self.fileobj.tell(): raise EOFError, "Reached EOF" else: --- 192,198 ---- # First, check if we're at the end of the file; # if so, it's time to stop; no more members to read. pos = self.fileobj.tell() # Save current position ! self.fileobj.seek(pos+1) # Seek one byte more if pos == self.fileobj.tell(): raise EOFError, "Reached EOF" else: