Author: Armin Rigo <[email protected]>
Branch: py3k
Changeset: r86369:0a4a546854ad
Date: 2016-08-21 10:27 +0200
http://bitbucket.org/pypy/pypy/changeset/0a4a546854ad/
Log: translation fix
diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -68,7 +68,7 @@
@jit.elidable
def find_map_attr(self, name, index):
# attr cache
- assert type(name) is str # utf8-encoded
+ assert isinstance(name, str) # utf8-encoded
space = self.space
cache = space.fromcache(MapAttrCache)
SHIFT2 = r_uint.BITS - space.config.objspace.std.methodcachesizeexp
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit