Author: adrian
Date: 2012-02-03 09:57:15 -0800 (Fri, 03 Feb 2012)
New Revision: 17424

Modified:
   django/trunk/django/utils/html.py
Log:
Small fix to comments in utils/html.py from [17347]

Modified: django/trunk/django/utils/html.py
===================================================================
--- django/trunk/django/utils/html.py   2012-02-03 17:54:08 UTC (rev 17423)
+++ django/trunk/django/utils/html.py   2012-02-03 17:57:15 UTC (rev 17424)
@@ -102,7 +102,7 @@
 fix_ampersands = allow_lazy(fix_ampersands, unicode)
 
 def smart_urlquote(url):
-    """Quotes an URL if it isn't already quoted."""
+    "Quotes a URL if it isn't already quoted."
     # Handle IDN before quoting.
     scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
     try:
@@ -112,7 +112,7 @@
     else:
         url = urlparse.urlunsplit((scheme, netloc, path, query, fragment))
 
-    # An URL is considered unquoted if it contains no % character, or if it
+    # An URL is considered unquoted if it contains no % characters or
     # contains a % not followed by two hexadecimal digits. See #9655.
     if '%' not in url or unquoted_percents_re.search(url):
         # See http://bugs.python.org/issue2637

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to