Commit 1d39c2ac authored by Stefan Behnel's avatar Stefan Behnel

simplify some code

parent 9a59133d
...@@ -351,7 +351,7 @@ class Scope(object): ...@@ -351,7 +351,7 @@ class Scope(object):
'cfunc_entries', 'cfunc_entries',
'c_class_entries'): 'c_class_entries'):
self_entries = getattr(self, attr) self_entries = getattr(self, attr)
names = set([e.name for e in self_entries]) names = set(e.name for e in self_entries)
for entry in getattr(other, attr): for entry in getattr(other, attr):
if (entry.used or merge_unused) and entry.name not in names: if (entry.used or merge_unused) and entry.name not in names:
self_entries.append(entry) self_entries.append(entry)
......
...@@ -360,8 +360,8 @@ class SimpleAssignmentTypeInferer(object): ...@@ -360,8 +360,8 @@ class SimpleAssignmentTypeInferer(object):
return return
# Set of assignemnts # Set of assignemnts
assignments = set([]) assignments = set()
assmts_resolved = set([]) assmts_resolved = set()
dependencies = {} dependencies = {}
assmt_to_names = {} assmt_to_names = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment