Commits

Brodie Rao  committed 0dfbe00

Formatting improvements

  • Participants
  • Parent commits 039bfca

Comments (0)

Files changed (3)

File dogslow/__init__.py

     def peek(request, thread_id, started):
         try:
             frame = sys._current_frames()[thread_id]
-            
+
             req_string = '%s %s://%s%s' % (
                 request.META.get('REQUEST_METHOD'),
                 request.META.get('wsgi.url_scheme', 'http'),
         except Exception:
             logging.exception('Request watchdog failed')
 
-
     def _is_exempt(self, request):
         """Returns True if this request's URL resolves to a url pattern whose
         name is listed in settings.DOGSLOW_IGNORE_URLS.

File dogslow/timer.py

     Jobs are scheduled with a delay value in seconds.
     '''
 
-    def __init__(self, group=None, target=None, name=None, args=(), kwargs=None, verbose=None):
+    def __init__(self, group=None, target=None, name=None, args=(),
+                 kwargs=None, verbose=None):
         super(Timer, self).__init__(group, target, name, args, kwargs, verbose)
 
         self.lock = threading.Condition()
 #!/usr/bin/env python
 # Installs dogslow.
 
-import os, sys
+import os
+import sys
 from distutils.core import setup
 
 def long_description():
         'Development Status :: 4 - Beta',
         'Framework :: Django',
         'Intended Audience :: Developers',
-        'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
+        ('License :: OSI Approved :: '
+         'GNU Library or Lesser General Public License (LGPL)'),
         'Natural Language :: English',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 2.5',
         'Topic :: Utilities',
     ],
     description='A Django middleware that logs tracebacks of slow requests.',
-    download_url='https://bitbucket.org/evzijst/dogslow/downloads/dogslow-0.9.2.tar.gz',
+    download_url=('https://bitbucket.org/evzijst/dogslow/downloads/'
+                  'dogslow-0.9.2.tar.gz'),
     keywords='django debug watchdog middleware traceback',
     license='GNU LGPL',
     long_description=long_description(),