]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed 'return EOFError' that should be 'raise EOFError', caught by
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 6 Sep 1999 16:34:51 +0000 (16:34 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 6 Sep 1999 16:34:51 +0000 (16:34 +0000)
Skip Montanaro's return-value patches.

Lib/gzip.py

index 578a07bc6cc308d4637d851c531b3bc209bbe8e9..c0aff91150c47e445f7d39e218e6eedea60c08cc 100644 (file)
@@ -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