mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-04 06:48:27 -04:00
- need list() here for py3k
This commit is contained in:
@@ -181,7 +181,10 @@ class WeakInstanceDict(IdentityMap):
|
||||
return iter(self.values())
|
||||
|
||||
def all_states(self):
|
||||
return self._dict.values()
|
||||
if util.py2k:
|
||||
return self._dict.values()
|
||||
else:
|
||||
return list(self._dict.values())
|
||||
|
||||
def discard(self, state):
|
||||
if state.key in self._dict:
|
||||
|
||||
Reference in New Issue
Block a user