Commits

Anonymous committed 42ad2d6

[svn r79] clean line.

Comments (0)

Files changed (1)

django_authopenid/middleware.py

         if response.status_code != 200 or len(response.content) < 200:
             return response
         path = request.get_full_path()
-        if path == "/" and request.META.has_key('HTTP_ACCEPT') and mimeparse.best_match(['text/html', 'application/xrds+xml'], request.META['HTTP_ACCEPT']) == 'application/xrds+xml':
+        if path == "/" and request.META.has_key('HTTP_ACCEPT') and \
+                mimeparse.best_match(['text/html', 'application/xrds+xml'], 
+                    request.META['HTTP_ACCEPT']) == 'application/xrds+xml':
             return HttpResponseRedirect(reverse('yadis_xrdf'))
         return response