diff options
author | Barry Warsaw <barry@python.org> | 2011-12-13 17:22:22 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2011-12-13 17:22:22 -0500 |
commit | e033b0c8f22a67abfe2ba1b61365d0c2570b7429 (patch) | |
tree | d2389b609482c2f0f49b211613e5b83d607dffb9 /dbus/service.py | |
parent | 061e55e8edbfb457bf56194c52e7d7624855cf41 (diff) |
Import threading instead of thread. The latter is gone in Python 3.
Diffstat (limited to 'dbus/service.py')
-rw-r--r-- | dbus/service.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dbus/service.py b/dbus/service.py index f1b3a9b..eebc949 100644 --- a/dbus/service.py +++ b/dbus/service.py @@ -29,11 +29,8 @@ __docformat__ = 'restructuredtext' import sys import logging import operator +import threading import traceback -try: - import thread -except ImportError: - import dummy_thread as thread import _dbus_bindings from dbus import SessionBus, Signature, Struct, validate_bus_name, \ @@ -466,7 +463,7 @@ class Object(Interface): #: is for future expansion (to support fallback paths) self._locations = [] #: Lock protecting `_locations`, `_connection` and `_object_path` - self._locations_lock = thread.allocate_lock() + self._locations_lock = threading.Lock() #: True if this is a fallback object handling a whole subtree. self._fallback = False |