[pypy-commit] pypy py3.5: translation fix
arigo
pypy.commits at gmail.com
Mon Aug 29 05:26:43 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
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,
More information about the pypy-commit
mailing list