diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-22 14:01:57 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-22 14:04:10 +0200 |
| commit | a5b062576bda29abe93504dbcb126e644d07f9dd (patch) | |
| tree | 7a036e4ae103cd5002c0965940a8b6adc21886ca /django/utils/http.py | |
| parent | ee0ef1b0948c19bc5fee06a6b9b4286b879f81c1 (diff) | |
Removed a few trailing backslashes.
We have always been at war with trailing backslashes.
Diffstat (limited to 'django/utils/http.py')
| -rw-r--r-- | django/utils/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/http.py b/django/utils/http.py index fb6c4b31ca..9ebbb88723 100644 --- a/django/utils/http.py +++ b/django/utils/http.py @@ -256,5 +256,5 @@ def is_safe_url(url, host=None): if not url: return False url_info = urlparse(url) - return (not url_info.netloc or url_info.netloc == host) and \ - (not url_info.scheme or url_info.scheme in ['http', 'https']) + return ((not url_info.netloc or url_info.netloc == host) and + (not url_info.scheme or url_info.scheme in ['http', 'https'])) |
