Author: Armin Rigo <[email protected]>
Branch:
Changeset: r57253:7d5b0a808fc9
Date: 2012-09-09 20:34 +0200
http://bitbucket.org/pypy/pypy/changeset/7d5b0a808fc9/
Log: Fix the message (thanks Julian on issue1256).
diff --git a/pypy/module/_io/interp_stringio.py
b/pypy/module/_io/interp_stringio.py
--- a/pypy/module/_io/interp_stringio.py
+++ b/pypy/module/_io/interp_stringio.py
@@ -128,7 +128,7 @@
def write_w(self, space, w_obj):
if not space.isinstance_w(w_obj, space.w_unicode):
raise operationerrfmt(space.w_TypeError,
- "string argument expected, got '%s'",
+ "unicode argument expected, got '%s'",
space.type(w_obj).getname(space))
self._check_closed(space)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit