cubicweb/server/sources/__init__.py
changeset 11767 432f87a63057
parent 11763 39df042f4ab4
child 11774 51c160677afe
--- a/cubicweb/server/sources/__init__.py	Wed Oct 05 15:28:43 2016 +0200
+++ b/cubicweb/server/sources/__init__.py	Fri Sep 30 18:25:08 2016 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -16,25 +16,21 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """cubicweb server sources support"""
+
 from __future__ import print_function
 
-__docformat__ = "restructuredtext en"
-
 from time import time
 from logging import getLogger
-from base64 import b64decode
 
 from six import text_type
 
 from logilab.common import configuration
 from logilab.common.textutils import unormalize
-from logilab.common.deprecation import deprecated
 
 from yams.schema import role_name
 
 from cubicweb import ValidationError, set_log_methods, server
 from cubicweb.server import SOURCE_TYPES
-from cubicweb.server.edition import EditedEntity
 
 
 def dbg_st_search(uri, union, args, cachekey=None, prefix='rql for'):
@@ -50,6 +46,7 @@
     # return true so it can be used as assertion (and so be killed by python -O)
     return True
 
+
 def dbg_results(results):
     if server.DEBUG & server.DBG_RQL:
         if len(results) > 10:
@@ -392,6 +389,7 @@
     except KeyError:
         raise RuntimeError('Unknown source type %r' % source_type)
 
+
 def get_source(type, source_config, repo, eid):
     """return a source adapter according to the adapter field in the source's
     configuration