Updated deprecated imports dev-tf
authorThierry Florac <tflorac@ulthar.net>
Wed, 20 Nov 2019 19:14:09 +0100
branchdev-tf
changeset 405 063ccbe396de
parent 404 3f249488b3ff
child 406 712193992d46
Updated deprecated imports
src/pyams_utils/registry.py
--- a/src/pyams_utils/registry.py	Wed Nov 20 18:28:10 2019 +0100
+++ b/src/pyams_utils/registry.py	Wed Nov 20 19:14:09 2019 +0100
@@ -21,27 +21,25 @@
 See :ref:`zca` to get a brief introduction about using a local registry with PyAMS packages.
 """
 
-__docformat__ = 'restructuredtext'
+
+import logging
+import threading
+
+import venusian
+from ZODB.POSException import POSError
+from pyramid.events import subscriber
+from pyramid.interfaces import INewRequest
+from pyramid.threadlocal import get_current_registry as get_request_registry, manager
+from zope.component.globalregistry import getGlobalSiteManager
+from zope.component.interfaces import ISite
+from zope.interface import implementedBy, providedBy
+from zope.interface.interfaces import ComponentLookupError
+from zope.traversing.interfaces import IBeforeTraverseEvent
 
 
-# import standard library
-import logging
-logger = logging.getLogger('PyAMS (utils)')
-
-import threading
-import venusian
+__docformat__ = 'restructuredtext'
 
-# import interfaces
-from pyramid.interfaces import INewRequest
-from zope.component.interfaces import ComponentLookupError, ISite
-from zope.traversing.interfaces import IBeforeTraverseEvent
-
-# import packages
-from pyramid.events import subscriber
-from pyramid.threadlocal import manager, get_current_registry as get_request_registry
-from ZODB.POSException import POSError
-from zope.component.globalregistry import getGlobalSiteManager
-from zope.interface import implementedBy, providedBy
+logger = logging.getLogger('PyAMS (utils)')
 
 
 class LocalRegistry(threading.local):