cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Sep 2010 18:23:42 +0200
branchstable
changeset 6309 9f03e3c32676
parent 6308 c151c730a1ac
child 6310 554da7585fba
cleanup
req.py
server/sources/pyrorql.py
--- a/req.py	Wed Sep 22 18:23:35 2010 +0200
+++ b/req.py	Wed Sep 22 18:23:42 2010 +0200
@@ -15,9 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""Base class for request/session
+"""Base class for request/session"""
 
-"""
 __docformat__ = "restructuredtext en"
 
 from warnings import warn
--- a/server/sources/pyrorql.py	Wed Sep 22 18:23:35 2010 +0200
+++ b/server/sources/pyrorql.py	Wed Sep 22 18:23:42 2010 +0200
@@ -197,7 +197,8 @@
         """method called by the repository once ready to handle request"""
         interval = int(self.config.get('synchronization-interval', 5*60))
         self.repo.looping_task(interval, self.synchronize)
-        self.repo.looping_task(self._query_cache.ttl.seconds/10, self._query_cache.clear_expired)
+        self.repo.looping_task(self._query_cache.ttl.seconds/10,
+                               self._query_cache.clear_expired)
 
     def synchronize(self, mtime=None):
         """synchronize content known by this repository with content in the