summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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