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

simplify some code

parent 9a59133d
......@@ -351,7 +351,7 @@ class Scope(object):
'cfunc_entries',
'c_class_entries'):
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):
if (entry.used or merge_unused) and entry.name not in names:
self_entries.append(entry)
......
......@@ -360,8 +360,8 @@ class SimpleAssignmentTypeInferer(object):
return
# Set of assignemnts
assignments = set([])
assmts_resolved = set([])
assignments = set()
assmts_resolved = set()
dependencies = {}
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