Skip to content

Commit e655377

Browse files
committed
Modified LazyDict to inherit from object instead of dict, and removed iteration over values.
Py3 no longer supports dictionaries that self-modify their item lists during iteration.
1 parent 6e9b7ea commit e655377

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/toolchains/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
CPU_COUNT_MIN = 1
4646
CPU_COEF = 1
4747

48-
class LazyDict(dict):
48+
class LazyDict(object):
4949
def __init__(self):
5050
self.eager = {}
5151
self.lazy = {}
@@ -252,8 +252,6 @@ def _collect_duplicates(self, dupe_dict, dupe_headers):
252252
headername = basename(filename)
253253
dupe_headers.setdefault(headername, set())
254254
dupe_headers[headername] |= set([headername])
255-
for res in self.features.values():
256-
res._collect_duplicates(dupe_dict, dupe_headers)
257255
return dupe_dict, dupe_headers
258256

259257
def detect_duplicates(self, toolchain):

0 commit comments

Comments
 (0)