[appobject] cleanup module (prepares #2406609)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 10 Jan 2013 18:31:43 +0100
changeset 8654 7021bba2dcf2
parent 8653 ad5a3ff57255
child 8655 ab57000bff7b
[appobject] cleanup module (prepares #2406609) * remove unused imports * break long lines
appobject.py
--- a/appobject.py	Thu Jan 17 14:29:12 2013 +0100
+++ b/appobject.py	Thu Jan 10 18:31:43 2013 +0100
@@ -31,25 +31,25 @@
 """
 __docformat__ = "restructuredtext en"
 
-import types
 from logging import getLogger
-from warnings import warn
 
 from logilab.common.deprecation import deprecated, class_renamed
 from logilab.common.decorators import classproperty
 from logilab.common.logging_ext import set_log_methods
 from logilab.common.registry import yes
 
-from cubicweb.cwconfig import CubicWebConfiguration
 # XXX for bw compat
 from logilab.common.registry import objectify_predicate, traced_selection, Predicate
 
 
-objectify_selector = deprecated('[3.15] objectify_selector has been renamed to objectify_predicates in logilab.common.registry')(objectify_predicate)
-traced_selection = deprecated('[3.15] traced_selection has been moved to logilab.common.registry')(traced_selection)
-Selector = class_renamed(
-    'Selector', Predicate,
-    '[3.15] Selector has been renamed to Predicate in logilab.common.registry')
+objectify_selector = deprecated('[3.15] objectify_selector has been '
+                                'renamed to objectify_predicates in '
+                                'logilab.common.registry')(objectify_predicate)
+traced_selection = deprecated('[3.15] traced_selection has been '
+                              'moved to logilab.common.registry')(traced_selection)
+Selector = class_renamed('Selector', Predicate,
+                         '[3.15] Selector has been renamed to Predicate '
+                         'in logilab.common.registry')
 
 @deprecated('[3.15] lltrace decorator can now be removed')
 def lltrace(func):