diff options
author | Andrew M. Kuchling <amk@amk.ca> | 1999-09-06 16:34:51 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 1999-09-06 16:34:51 (GMT) |
commit | 2d813e514020a9cf74a19e8b4ba0b98996bb24eb (patch) | |
tree | 0b2e734e42185ae3caf1bea179f13d9f3d6a515f | |
parent | a07934e53f69cdeec62c8c97b0d18187aa01f2d5 (diff) | |
download | cpython-2d813e514020a9cf74a19e8b4ba0b98996bb24eb.zip cpython-2d813e514020a9cf74a19e8b4ba0b98996bb24eb.tar.gz cpython-2d813e514020a9cf74a19e8b4ba0b98996bb24eb.tar.bz2 |
Fixed 'return EOFError' that should be 'raise EOFError', caught by
Skip Montanaro's return-value patches.
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class GzipFile: 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 |