diff options
author | Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> | 2017-03-26 20:59:08 (GMT) |
---|---|---|
committer | Ćukasz Langa <lukasz@langa.pl> | 2017-03-26 20:59:08 (GMT) |
commit | 1e73dbbc29c96d0739ffef92db36f63aa1aa30da (patch) | |
tree | e335163e9dd6874fddcfb584c661679f26a5b0cb /Lib/_pyio.py | |
parent | f8beb9831acd5cf80b9c56aea5864e16118c5400 (diff) | |
download | cpython-1e73dbbc29c96d0739ffef92db36f63aa1aa30da.zip cpython-1e73dbbc29c96d0739ffef92db36f63aa1aa30da.tar.gz cpython-1e73dbbc29c96d0739ffef92db36f63aa1aa30da.tar.bz2 |
Fix small exception typos in Lib (#818)
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) |