소스 검색

Corrected a pair of flake8 violations

Alex Gaynor 11 년 전
부모
커밋
cd7f37b647
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      django/core/urlresolvers.py
  2. 1 1
      django/views/debug.py

+ 0 - 1
django/core/urlresolvers.py

@@ -72,7 +72,6 @@ class Resolver404(Http404):
     pass
 
 
-
 class NoReverseMatch(Exception):
     pass
 

+ 1 - 1
django/views/debug.py

@@ -477,7 +477,7 @@ def technical_404_response(request, exception):
     try:
         error_url = exception.args[0]['path']
     except (IndexError, TypeError, KeyError):
-        error_url = request.path_info[1:] # Trim leading slash
+        error_url = request.path_info[1:]  # Trim leading slash
 
     try:
         tried = exception.args[0]['tried']