Skip to content
2 changes: 1 addition & 1 deletion Lib/_pyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ def _reset_encoder(position):
encoder.reset()

if self.closed:
raise ValueError("tell on closed file")
raise ValueError("seek on closed file")
if not self._seekable:
raise UnsupportedOperation("underlying stream is not seekable")
if whence == SEEK_CUR:
Expand Down
Loading