Commit 167d10dd authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Fixed 'return EOFError' that should be 'raise EOFError', caught by

Skip Montanaro's return-value patches.
parent 3325669e
...@@ -182,7 +182,7 @@ class GzipFile: ...@@ -182,7 +182,7 @@ class GzipFile:
self.fileobj.seek(0, 2) # Seek to end of file self.fileobj.seek(0, 2) # Seek to end of file
if pos == self.fileobj.tell(): if pos == self.fileobj.tell():
self.fileobj = None self.fileobj = None
return EOFError, "Reached EOF" raise EOFError, "Reached EOF"
else: else:
self.fileobj.seek( pos ) # Return to original position self.fileobj.seek( pos ) # Return to original position
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment