[Zodb-checkins]
SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py
Use builtin instead of types
Julien Anguenot
ja at nuxeo.com
Tue Aug 9 09:38:52 EDT 2005
Log message for revision 37804:
Use builtin instead of types
Changed:
U ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py
-=-
Modified: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py
===================================================================
--- ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py 2005-08-09 01:12:06 UTC (rev 37803)
+++ ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py 2005-08-09 13:38:52 UTC (rev 37804)
@@ -146,8 +146,6 @@
as their only argument.
"""
-from types import IntType
-
import bisect
import logging
import sys
@@ -416,7 +414,7 @@
return iter([x[2:5] for x in self._before_commit])
def beforeCommitHookOrdered(self, __hook, __order, *args, **kws):
- if not isinstance(__order, IntType):
+ if not isinstance(__order, int):
raise ValueError("An integer value is required "
"for the order argument")
# `index` goes up by 1 on each append. Then no two tuples can
More information about the Zodb-checkins
mailing list