Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r86677:5acad0a7aef3
Date: 2016-08-29 11:26 +0200
http://bitbucket.org/pypy/pypy/changeset/5acad0a7aef3/
Log: translation fix
diff --git a/pypy/objspace/std/marshal_impl.py
b/pypy/objspace/std/marshal_impl.py
--- a/pypy/objspace/std/marshal_impl.py
+++ b/pypy/objspace/std/marshal_impl.py
@@ -1,5 +1,5 @@
from rpython.rlib.rarithmetic import LONG_BIT, r_longlong, r_uint
-from rpython.rlib.rstring import StringBuilder
+from rpython.rlib.rstring import StringBuilder, assert_str0
from rpython.rlib.rstruct import ieee
from rpython.rlib.unroll import unrolling_iterable
from rpython.rlib import objectmodel
@@ -418,6 +418,7 @@
name = _encode_utf8(space, space.unicode_w(u.get_w_obj()))
firstlineno = u.get_int()
lnotab = space.bytes_w(u.get_w_obj())
+ filename = assert_str0(filename)
PyCode.__init__(w_codeobj,
space, argcount, kwonlyargcount, nlocals, stacksize, flags,
code, consts_w[:], names, varnames, filename,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit