diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-12-14 22:19:17 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-12-14 22:19:17 +0000 |
commit | d30a0884246a39279c50baa9bc36dc48269ca9a3 (patch) | |
tree | ff123de6796610c01e1aa1ef953ebf40c2dddc7f | |
parent | Enable dialect code. (diff) | |
download | gentoo-ads-d30a0884246a39279c50baa9bc36dc48269ca9a3.tar.gz gentoo-ads-d30a0884246a39279c50baa9bc36dc48269ca9a3.tar.bz2 gentoo-ads-d30a0884246a39279c50baa9bc36dc48269ca9a3.zip |
Chomp whitespace.
-rw-r--r-- | gentoo_ads/ads/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoo_ads/ads/views.py b/gentoo_ads/ads/views.py index 57050b3..2abbd7e 100644 --- a/gentoo_ads/ads/views.py +++ b/gentoo_ads/ads/views.py @@ -22,8 +22,8 @@ def _build_lang_array(request): # Ignore priority for now, hopefully they are in the correct order # TODO: reorder per HTTP language RFC #accept_langs = [re.sub(';q=[0-9.]+', '' ,_).strip() for _ in accept_langs_raw.split(',')] - #accept_langs = [_.strip() for _ in accept_langs_raw.split(',')] - accept_langs = accept_langs_raw.split(',') + accept_langs = [_.strip() for _ in accept_langs_raw.split(',')] + #accept_langs = accept_langs_raw.split(',') # Handle dialects for _ in accept_langs: if '-' in _: |