Author: Matti Picus <[email protected]>
Branch: winconsoleio
Changeset: r97525:53bf39ed2750
Date: 2019-09-18 16:48 +0300
http://bitbucket.org/pypy/pypy/changeset/53bf39ed2750/

Log:    fix 58e969594b31

diff --git a/pypy/module/_io/interp_win32consoleio.py 
b/pypy/module/_io/interp_win32consoleio.py
--- a/pypy/module/_io/interp_win32consoleio.py
+++ b/pypy/module/_io/interp_win32consoleio.py
@@ -222,7 +222,7 @@
                 elif char == "r":
                     if rwa:
                         raise oefmt(space.w_ValueError,
-                                "invalid mode: %s", space.newtext(mode))
+                                "invalid mode: %s", mode)
                     rwa = True
                     self.readable = True
                     if console_type == "x":
@@ -230,14 +230,14 @@
                 elif char == "w":
                     if rwa:
                         raise oefmt(space.w_ValueError,
-                                "invalid mode: %s", space.newtext(mode))
+                                "invalid mode: %s", mode)
                     rwa = True
                     self.writable = True
                     if console_type == 'x':
                         console_type = 'w'
                 else:
                     raise oefmt(space.w_ValueError,
-                                "invalid mode: %s", space.newtext(mode))
+                                "invalid mode: %s", mode)
             if not rwa:
                 raise oefmt(space.w_ValueError,
                             "Must have exactly one of read or write mode")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to