"""
try:
return attributes.instance_state(instance)
- except exc.UnmappedClassError:
- raise exc.UnmappedInstanceError(instance)
- except exc.NO_STATE:
+ except (exc.UnmappedClassError, exc.NO_STATE):
raise exc.UnmappedInstanceError(instance)
# third call, merge object already present. almost no calls.
@profiling.function_call_count(variance=0.05,
- versions={'2.7':11, '2.6':11, '2.5':15, '3': 12})
+ versions={'2.7':14, '2.6':14, '2.5':15, '3': 12})
def go():
return sess2.merge(p2, load=False)
p3 = go()