Skip to content

Commit

Permalink
Merge pull request #41 from martinstein/patch-1
Browse files Browse the repository at this point in the history
Fix string comparison (use != instead of is not)
  • Loading branch information
mgedmin committed Dec 30, 2019
2 parents 47efbba + 51209a9 commit b2227a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/sqlalchemy/datamanager.py
Expand Up @@ -129,7 +129,7 @@ def tpc_finish(self, trans):
pass

def tpc_abort(self, trans):
assert self.state is not "committed"
assert self.state != "committed"

def sortKey(self):
# Try to sort last, so that we vote last - we may commit in tpc_vote(),
Expand Down

0 comments on commit b2227a3

Please sign in to comment.