summaryrefslogtreecommitdiffstats
path: root/Lib/gzip.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>1999-09-06 16:34:51 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>1999-09-06 16:34:51 (GMT)
commit2d813e514020a9cf74a19e8b4ba0b98996bb24eb (patch)
tree0b2e734e42185ae3caf1bea179f13d9f3d6a515f /Lib/gzip.py
parenta07934e53f69cdeec62c8c97b0d18187aa01f2d5 (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r--Lib/gzip.py2
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