Skip to content

Commit

Permalink
sigh python 3.5 dict iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Sep 9, 2019
1 parent dcf765c commit e8aa2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mypyc/genops.py
Expand Up @@ -531,7 +531,8 @@ def prepare_class_def(path: str, module_name: str, cdef: ClassDef,
ir = mapper.type_to_ir[cdef.info]
info = cdef.info

for name, node in info.names.items():
# We sort the table for determinism here on Python 3.5
for name, node in sorted(info.names.items()):
if isinstance(node.node, Var):
assert node.node.type, "Class member %s missing type" % name
if not node.node.is_classvar and name != '__slots__':
Expand Down

0 comments on commit e8aa2ae

Please sign in to comment.