[sobjects] Fix flake8 errors in services.py
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Mar 2017 10:10:44 +0100
changeset 12056 f223f98e3b14
parent 12055 6672f51d8268
child 12057 90c40f229ab0
[sobjects] Fix flake8 errors in services.py
cubicweb/sobjects/services.py
flake8-ok-files.txt
--- a/cubicweb/sobjects/services.py	Wed Mar 15 08:39:51 2017 +0100
+++ b/cubicweb/sobjects/services.py	Fri Mar 10 10:10:44 2017 +0100
@@ -30,11 +30,11 @@
     resources usage.
     """
 
-    __regid__  = 'repo_stats'
+    __regid__ = 'repo_stats'
     __select__ = match_user_groups('managers', 'users')
 
     def call(self):
-        repo = self._cw.repo # Service are repo side only.
+        repo = self._cw.repo  # Service are repo side only.
         results = {}
         querier = repo.querier
         source = repo.system_source
@@ -42,8 +42,8 @@
             (len(querier._rql_cache), repo.config['rql-cache-size'],
             querier.cache_hit, querier.cache_miss, 'rqlt_st'),
             (len(source._cache), repo.config['rql-cache-size'],
-            source.cache_hit, source.cache_miss, 'sql'),
-            ):
+             source.cache_hit, source.cache_miss, 'sql'),
+        ):
             results['%s_cache_size' % title] = {'size': size, 'maxsize': maxsize}
             results['%s_cache_hit' % title] = hits
             results['%s_cache_miss' % title] = misses
@@ -61,7 +61,7 @@
     resources usage.
     """
 
-    __regid__  = 'repo_gc_stats'
+    __regid__ = 'repo_gc_stats'
     __select__ = match_user_groups('managers')
 
     def call(self, nmax=20):
--- a/flake8-ok-files.txt	Wed Mar 15 08:39:51 2017 +0100
+++ b/flake8-ok-files.txt	Fri Mar 10 10:10:44 2017 +0100
@@ -57,6 +57,7 @@
 cubicweb/server/test/unittest_rqlannotation.py
 cubicweb/server/test/unittest_utils.py
 cubicweb/sobjects/notification.py
+cubicweb/sobjects/services.py
 cubicweb/sobjects/test/unittest_notification.py
 cubicweb/sobjects/test/unittest_register_user.py
 cubicweb/sobjects/textparsers.py