diff options
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r-- | Lib/_pyio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py index 8f93976..5dfc1f0 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -766,7 +766,7 @@ class _BufferedIOMixin(BufferedIOBase): def flush(self): if self.closed: - raise ValueError("flush of closed file") + raise ValueError("flush on closed file") self.raw.flush() def close(self): @@ -1214,7 +1214,7 @@ class BufferedWriter(_BufferedIOMixin): def _flush_unlocked(self): if self.closed: - raise ValueError("flush of closed file") + raise ValueError("flush on closed file") while self._write_buf: try: n = self.raw.write(self._write_buf) |