[Checkins] SVN: zope.rdb/trunk/src/zope/rdb/ Replaced dependency on
zope.thread.local with threading.local
Shane Hathaway
shane at hathawaymix.org
Sat Jul 12 15:50:40 EDT 2008
Log message for revision 88297:
Replaced dependency on zope.thread.local with threading.local
Changed:
U zope.rdb/trunk/src/zope/rdb/DEPENDENCIES.cfg
U zope.rdb/trunk/src/zope/rdb/__init__.py
-=-
Modified: zope.rdb/trunk/src/zope/rdb/DEPENDENCIES.cfg
===================================================================
--- zope.rdb/trunk/src/zope/rdb/DEPENDENCIES.cfg 2008-07-12 15:49:21 UTC (rev 88296)
+++ zope.rdb/trunk/src/zope/rdb/DEPENDENCIES.cfg 2008-07-12 19:50:37 UTC (rev 88297)
@@ -8,5 +8,4 @@
zope.security
zope.schema
zope.testing
-zope.thread
zope.component
Modified: zope.rdb/trunk/src/zope/rdb/__init__.py
===================================================================
--- zope.rdb/trunk/src/zope/rdb/__init__.py 2008-07-12 15:49:21 UTC (rev 88296)
+++ zope.rdb/trunk/src/zope/rdb/__init__.py 2008-07-12 19:50:37 UTC (rev 88297)
@@ -20,7 +20,7 @@
$Id$
"""
import re
-import time, random, thread
+import time, random, thread, threading
from urllib import unquote_plus
from persistent import Persistent
@@ -36,7 +36,6 @@
from zope.rdb.interfaces import IResultSet
from zope.rdb.interfaces import IZopeConnection, IZopeCursor
from zope.rdb.interfaces import IManageableZopeDatabaseAdapter
-from zope.thread import local
DEFAULT_ENCODING = "utf-8"
@@ -114,7 +113,7 @@
# is important when instantiating database adapters using
# rdb:provideConnection as the same ZopeDatabaseAdapter instance will
# be used by all threads.
- _connections = local()
+ _connections = threading.local()
def __init__(self, dsn):
self.setDSN(dsn)
More information about the Checkins
mailing list