From: "Matthew Summers" <quantumsummers@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-ads:master commit in: gentoo_ads/ads/
Date: Wed, 4 May 2011 20:15:22 +0000 (UTC) [thread overview]
Message-ID: <7bf4468feba1e4c841e6dc052c2fb4a50d1d79b5.quantumsummers@gentoo> (raw)
commit: 7bf4468feba1e4c841e6dc052c2fb4a50d1d79b5
Author: Matthew Summers <matthew.summers <AT> liquidustech <DOT> com>
AuthorDate: Wed May 4 20:14:51 2011 +0000
Commit: Matthew Summers <quantumsummers <AT> gentoo <DOT> org>
CommitDate: Wed May 4 20:14:51 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-ads.git;a=commit;h=7bf4468f
Fix for inf loop b0rkage
---
gentoo_ads/ads/views.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/gentoo_ads/ads/views.py b/gentoo_ads/ads/views.py
index 261dffe..11489f4 100644
--- a/gentoo_ads/ads/views.py
+++ b/gentoo_ads/ads/views.py
@@ -25,9 +25,8 @@ def _build_lang_array(request):
#accept_langs = [_.strip() for _ in accept_langs_raw.split(',')]
#accept_langs = accept_langs_raw.split(',')
# Handle dialects
- for _ in accept_langs:
- if '-' in _:
- accept_langs += [ re.sub('[-_][_-a-zA-Z0-9]+', '', _) ]
+ accept_langs = [re.sub('[-_][_-a-zA-Z0-9]+', '', lang) for lang in accept_langs if '-' in lang]
+
return accept_langs
def _match_langs(accept_langs, available_langs):
reply other threads:[~2011-05-04 20:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7bf4468feba1e4c841e6dc052c2fb4a50d1d79b5.quantumsummers@gentoo \
--to=quantumsummers@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox