1. adorsk
  2. sqlalchemy

Commits

Mike Bayer  committed 9262a98 Draft

- remove an unused function, hooray

  • Participants
  • Parent commits 0961927
  • Branches default

Comments (0)

Files changed (1)

File lib/sqlalchemy/orm/util.py

View file
  • Ignore whitespace
 def state_attribute_str(state, attribute):
     return state_str(state) + "." + attribute
 
-def identity_equal(a, b):
-    if a is b:
-        return True
-    if a is None or b is None:
-        return False
-    try:
-        state_a = attributes.instance_state(a)
-        state_b = attributes.instance_state(b)
-    except exc.NO_STATE:
-        return False
-    if state_a.key is None or state_b.key is None:
-        return False
-    return state_a.key == state_b.key
-