Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r68622:fe10412ef1c3
Date: 2014-01-12 09:43 -0800
http://bitbucket.org/pypy/pypy/changeset/fe10412ef1c3/

Log:    Apply the same logic here as on str_decode_ascii

diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -988,6 +988,8 @@
     return result.build(), pos
 
 
+# Specialize on the errorhandler when it's a constant
[email protected]_or_var(3)
 def unicode_encode_ucs1_helper(p, size, errors,
                                errorhandler=None, limit=256):
     if errorhandler is None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to