Fixed 'return EOFError' that should be 'raise EOFError', caught by

Skip Montanaro's return-value patches.
This commit is contained in:
Andrew M. Kuchling 1999-09-06 16:34:51 +00:00
parent a07934e53f
commit 2d813e5140
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class GzipFile:
self.fileobj.seek(0, 2) # Seek to end of file self.fileobj.seek(0, 2) # Seek to end of file
if pos == self.fileobj.tell(): if pos == self.fileobj.tell():
self.fileobj = None self.fileobj = None
return EOFError, "Reached EOF" raise EOFError, "Reached EOF"
else: else:
self.fileobj.seek( pos ) # Return to original position self.fileobj.seek( pos ) # Return to original position