Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small fix to comments in utils/html.py from [17347]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 20dbbcc2643e4983b3cfc85d1ae074ff4e0a6d27 1 parent 6bbc85c
Adrian Holovaty authored February 03, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/utils/html.py
4  django/utils/html.py
@@ -102,7 +102,7 @@ def fix_ampersands(value):
102 102
 fix_ampersands = allow_lazy(fix_ampersands, unicode)
103 103
 
104 104
 def smart_urlquote(url):
105  
-    """Quotes an URL if it isn't already quoted."""
  105
+    "Quotes a URL if it isn't already quoted."
106 106
     # Handle IDN before quoting.
107 107
     scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
108 108
     try:
@@ -112,7 +112,7 @@ def smart_urlquote(url):
112 112
     else:
113 113
         url = urlparse.urlunsplit((scheme, netloc, path, query, fragment))
114 114
 
115  
-    # An URL is considered unquoted if it contains no % character, or if it
  115
+    # An URL is considered unquoted if it contains no % characters or
116 116
     # contains a % not followed by two hexadecimal digits. See #9655.
117 117
     if '%' not in url or unquoted_percents_re.search(url):
118 118
         # See http://bugs.python.org/issue2637

0 notes on commit 20dbbcc

Please sign in to comment.
Something went wrong with that request. Please try again.