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.
pull/7092/head
Cruz Monrreal II 2018-05-31 08:10:46 -05:00
parent 6e9b7ea276
commit e65537790e
1 changed files with 1 additions and 3 deletions

View File

@ -45,7 +45,7 @@ from ..memap import MemapParser
CPU_COUNT_MIN = 1
CPU_COEF = 1
class LazyDict(dict):
class LazyDict(object):
def __init__(self):
self.eager = {}
self.lazy = {}
@ -252,8 +252,6 @@ class Resources:
headername = basename(filename)
dupe_headers.setdefault(headername, set())
dupe_headers[headername] |= set([headername])
for res in self.features.values():
res._collect_duplicates(dupe_dict, dupe_headers)
return dupe_dict, dupe_headers
def detect_duplicates(self, toolchain):