[pypy-svn] r50826 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Mon Jan 21 13:10:51 CET 2008
Author: arigo
Date: Mon Jan 21 13:10:50 2008
New Revision: 50826
Modified:
pypy/dist/pypy/objspace/std/unicodetype.py
Log:
Rename keyword argument for unicode().
Modified: pypy/dist/pypy/objspace/std/unicodetype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/unicodetype.py (original)
+++ pypy/dist/pypy/objspace/std/unicodetype.py Mon Jan 21 13:10:50 2008
@@ -241,11 +241,12 @@
return unicode_from_encoded_object(space, w_str, "ascii", "strict")
-def descr__new__(space, w_unicodetype, w_obj='', w_encoding=None, w_errors=None):
+def descr__new__(space, w_unicodetype, w_string='', w_encoding=None, w_errors=None):
# NB. the default value of w_obj is really a *wrapped* empty string:
# there is gateway magic at work
from pypy.objspace.std.unicodeobject import W_UnicodeObject
from pypy.objspace.std.ropeunicodeobject import W_RopeUnicodeObject
+ w_obj = w_string
w_obj_type = space.type(w_obj)
encoding, errors = _get_encoding_and_errors(space, w_encoding, w_errors)
More information about the Pypy-commit
mailing list