diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2012-02-03 17:57:15 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2012-02-03 17:57:15 +0000 |
| commit | 20dbbcc2643e4983b3cfc85d1ae074ff4e0a6d27 (patch) | |
| tree | 760b52e9a09fcb9d3a6d4cfb8dcb407f648169a2 /django/utils/html.py | |
| parent | 6bbc85cd6a32a0208586b291b82b08b1b9f0399f (diff) | |
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
Diffstat (limited to 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index c4be281e7d..de6b35dfd4 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -102,7 +102,7 @@ def fix_ampersands(value): 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 @@ def smart_urlquote(url): 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 |
