Commits

Alex Gaynor  committed fe10412

Apply the same logic here as on str_decode_ascii

  • Participants
  • Parent commits e69d5d9

Comments (0)

Files changed (1)

File rpython/rlib/runicode.py

     return result.build(), pos
 
 
+# Specialize on the errorhandler when it's a constant
+@specialize.arg_or_var(3)
 def unicode_encode_ucs1_helper(p, size, errors,
                                errorhandler=None, limit=256):
     if errorhandler is None: