Kaydet (Commit) 1e73dbbc authored tarafından Jim Fasarakis-Hilliard's avatar Jim Fasarakis-Hilliard Kaydeden (comit) Łukasz Langa

Fix small exception typos in Lib (#818)

üst f8beb983
......@@ -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)
......
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment