summaryrefslogtreecommitdiff
path: root/django/utils/http.py
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2011-06-09 20:01:28 +0000
committerRamiro Morales <cramm0@gmail.com>2011-06-09 20:01:28 +0000
commitdff31de20aac85e4f4834c2466762cbf23fc0a7b (patch)
tree6d7d6756f53eb599b81827bf097f24cfb1ed7b54 /django/utils/http.py
parentda0c7cd7778ee99a31587276faee30e94a8255ae (diff)
Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/http.py')
-rw-r--r--django/utils/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/http.py b/django/utils/http.py
index 4b43e5835e..07e96b9ba6 100644
--- a/django/utils/http.py
+++ b/django/utils/http.py
@@ -198,8 +198,8 @@ if sys.version_info >= (2, 6):
p1, p2 = urlparse.urlparse(url1), urlparse.urlparse(url2)
return (p1.scheme, p1.hostname, p1.port) == (p2.scheme, p2.hostname, p2.port)
else:
- # Python 2.4, 2.5 compatibility. This actually works for Python 2.6 and
- # above, but the above definition is much more obviously correct and so is
+ # Python 2.5 compatibility. This actually works for Python 2.6 and above,
+ # but the above definition is much more obviously correct and so is
# preferred going forward.
def same_origin(url1, url2):
"""