Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95094:744c4148953f
Date: 2018-09-09 13:17 +0300
http://bitbucket.org/pypy/pypy/changeset/744c4148953f/

Log:    align function call with signature

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -79,7 +79,7 @@
     state = space.fromcache(interp_codecs.CodecState)
     if _WIN32:
         bytes = space.bytes_w(w_string)
-        uni = str_decode_mbcs(bytes, len(bytes), 'strict',
+        uni = str_decode_mbcs(bytes, 'strict',
                               errorhandler=decode_error_handler(space),
                               force_ignore=False)[0]
     elif _MACOSX:
@@ -324,7 +324,7 @@
         slen = len(s)
         if errorhandler is None:
             errorhandler = decode_error_handler(space) 
-        res, size = runicode.str_decode_mbcs(s, slen, final=final, 
errors=errors,
+        res, size = runicode.str_decode_mbcs(s, slen, errors, final=final,
                            errorhandler=errorhandler, 
force_ignore=force_ignore)
         res_utf8 = runicode.unicode_encode_utf_8(res, len(res), 'strict')
         return res_utf8, len(res)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to