Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r68626:5b68b750f853
Date: 2014-01-12 14:34 -0800
http://bitbucket.org/pypy/pypy/changeset/5b68b750f853/

Log:    Also specialize unicode(s, 'unicode_escape') it shows up with things
        like six.u()

diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -1154,6 +1154,8 @@
                 builder.append(res)
     return pos
 
+# Specialize on the errorhandler when it's a constant
[email protected]_or_var(5)
 def str_decode_unicode_escape(s, size, errors, final=False,
                               errorhandler=False,
                               unicodedata_handler=None):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to