summaryrefslogtreecommitdiffstats
path: root/module/lib/jinja2/utils.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-10 13:37:02 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 02:51:58 +0200
commit2ff2fb0495febe11d5015d2308d67e1d8048e597 (patch)
tree2ae9d1da4a701fc6b3945ccc32dfbbf102b9c85a /module/lib/jinja2/utils.py
parentLocalization badge (diff)
downloadpyload-2ff2fb0495febe11d5015d2308d67e1d8048e597.tar.xz
Some code cosmetics about commas, spaces and quotes
Merges #577
Diffstat (limited to 'module/lib/jinja2/utils.py')
-rw-r--r--module/lib/jinja2/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/lib/jinja2/utils.py b/module/lib/jinja2/utils.py
index 7b77b8eb7..186fc6c44 100644
--- a/module/lib/jinja2/utils.py
+++ b/module/lib/jinja2/utils.py
@@ -269,7 +269,7 @@ def urlize(text, trim_url_limit=None, nofollow=False):
attribute.
"""
trim_url = lambda x, limit=trim_url_limit: limit is not None \
- and (x[:limit] + (len(x) >=limit and '...'
+ and (x[:limit] + (len(x) >= limit and '...'
or '')) or x
words = _word_split_re.split(unicode(escape(text)))
nofollow_attr = nofollow and ' rel="nofollow"' or ''