freebsd-ports/databases/zodb/files/patch-ZODB::Transaction.py
Hye-Shik Chang a2b184cd1e Fix build on Python 2.4.
Spotted by:	kris
2004-12-02 16:36:15 +00:00

14 lines
437 B
Python

--- ZODB/Transaction.py.orig Fri Dec 3 01:29:04 2004
+++ ZODB/Transaction.py Fri Dec 3 01:29:17 2004
@@ -351,9 +351,9 @@
else:
_t={}
- def get_transaction(_id=thread.get_ident, _t=_t, get=_t.get, None=None):
+ def get_transaction(_id=thread.get_ident, _t=_t, get=_t.get, _None=None):
id=_id()
- t=get(id, None)
+ t=get(id, _None)
if t is None: _t[id]=t=Transaction(id)
return t