Commits

Erik van Zijst committed 4f23761

PEP-8.

  • Participants
  • Parent commits a3bba5c
  • Tags 0.9.6

Comments (0)

Files changed (2)

File dogslow/__init__.py

 
             # This is a bizarre construct, `module` in `function`, but
             # this is how all stack traces are formatted.
-            extra['culprit'] = '%s in %s' % (
-            module.__name__, frame.f_code.co_name)
+            extra['culprit'] = '%s in %s' % (module.__name__,
+                                             frame.f_code.co_name)
 
             # We've got to simplify the stack, because raven only accepts
             # a list of 2-tuples of (frame, lineno).
         except Resolver404:
             return False
         return match and (match.url_name in
-                       getattr(settings, 'DOGSLOW_IGNORE_URLS', ()))
+                          getattr(settings, 'DOGSLOW_IGNORE_URLS', ()))
 
     def process_request(self, request):
         if not self._is_exempt(request):

File dogslow/timer.py

         try:
             if self.die:
                 raise RuntimeError('This timer has been shut down and '
-                        'does not accept new jobs.')
+                                   'does not accept new jobs.')
 
             job = TimerTask(callable_, *args, **kwargs)
             self._jobs.append((job, time.time() + timeout))
         self.lock.acquire()
         try:
             self._jobs = filter(lambda job: job[0] is not timer_task,
-                                       self._jobs)
+                                self._jobs)
             self.lock.notify()
         finally:
             self.lock.release()