Fix some more py36 to py27 issues

This commit is contained in:
Dave Halter committed 2017-12-28 01:33:51 +01:00
1 parent a8d3c46e9d
commit a7dea9e821
3 files changed
+16 -11

No files matched your search

+2
View File
@@ -448,6 +448,8 @@ class FakeDict(_FakeArray):
yield LazyKnownContext(compiled.create_simple_object(self.evaluator, key))
def py__getitem__(self, index):
if isinstance(index, bytes):
index = force_unicode(index)
return self._dct[index].infer()
def dict_values(self):