Commits

Alex Gaynor committed 5b68b75

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

  • Participants
  • Parent commits 6905738

Comments (0)

Files changed (1)

rpython/rlib/runicode.py

                 builder.append(res)
     return pos
 
+# Specialize on the errorhandler when it's a constant
+@specialize.arg_or_var(5)
 def str_decode_unicode_escape(s, size, errors, final=False,
                               errorhandler=False,
                               unicodedata_handler=None):