[pypy-commit] pypy guard-compatible: nonsense
cfbolz
pypy.commits at gmail.com
Wed Mar 30 03:37:59 EDT 2016
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: guard-compatible
Changeset: r83430:20a9a53c287b
Date: 2016-03-29 17:53 +0200
http://bitbucket.org/pypy/pypy/changeset/20a9a53c287b/
Log: nonsense
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
@@ -101,9 +101,9 @@
the object does *not* have a devolved terminator, and -2 if the
terminator *is* devolved """
attr = self.find_map_attr(name, index)
- if isinstance(self.terminator, DevolvedDictTerminator):
- return NOATTR_DEVOLVED_TERMINATOR
if attr is None:
+ if isinstance(self.terminator, DevolvedDictTerminator):
+ return NOATTR_DEVOLVED_TERMINATOR
return NOATTR
return attr.storageindex
More information about the pypy-commit
mailing list