From: Jim Fasarakis-Hilliard Date: Sun, 26 Mar 2017 20:59:08 +0000 (+0300) Subject: Fix small exception typos in Lib (#818) X-Git-Tag: v3.7.0a1~1072 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e73dbbc29c96d0739ffef92db36f63aa1aa30da;p=thirdparty%2FPython%2Fcpython.git Fix small exception typos in Lib (#818) --- diff --git a/Lib/_pyio.py b/Lib/_pyio.py index 8f9397660bcf..5dfc1f0308d9 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) diff --git a/Lib/asyncio/windows_utils.py b/Lib/asyncio/windows_utils.py index 7c63fb904b3b..d65ea1790f07 100644 --- a/Lib/asyncio/windows_utils.py +++ b/Lib/asyncio/windows_utils.py @@ -149,7 +149,7 @@ class PipeHandle: def fileno(self): if self._handle is None: - raise ValueError("I/O operatioon on closed pipe") + raise ValueError("I/O operation on closed pipe") return self._handle def close(self, *, CloseHandle=_winapi.CloseHandle):