mirror of https://github.com/python/cpython
Fixed 'return EOFError' that should be 'raise EOFError', caught by
Skip Montanaro's return-value patches.
This commit is contained in:
parent
a07934e53f
commit
2d813e5140
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue