commit | 2d813e514020a9cf74a19e8b4ba0b98996bb24eb | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Sep 06 16:34:51 1999 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Sep 06 16:34:51 1999 +0000 |
tree | 0b2e734e42185ae3caf1bea179f13d9f3d6a515f | |
parent | a07934e53f69cdeec62c8c97b0d18187aa01f2d5 [diff] |
Fixed 'return EOFError' that should be 'raise EOFError', caught by Skip Montanaro's return-value patches.
diff --git a/Lib/gzip.py b/Lib/gzip.py index 578a07b..c0aff91 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py
@@ -182,7 +182,7 @@ self.fileobj.seek(0, 2) # Seek to end of file if pos == self.fileobj.tell(): self.fileobj = None - return EOFError, "Reached EOF" + raise EOFError, "Reached EOF" else: self.fileobj.seek( pos ) # Return to original position