DB-API: Cut database access by 50% when iter by handles

This commit is contained in:
Doug Blank 2016-01-18 09:21:18 -05:00
parent 82d02c5c1b
commit b7444dd9b0

View File

@ -263,8 +263,7 @@ class Map(object):
return self.table.funcs[self.contains_func](key)
def __getitem__(self, key):
if self.table.funcs[self.contains_func](key):
return self.table.funcs[self.raw_func](key)
return self.table.funcs[self.raw_func](key)
def __setitem__(self, key, value):
"""