summaryrefslogtreecommitdiffstats
path: root/module/lib/jinja2/utils.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 15:53:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 20:23:43 +0200
commitb8942672378fccc7d557dfc2e40a4d90aecf7a0d (patch)
tree1d4a4cd78988b0ac3c18fcad8e4f3791b11f3f27 /module/lib/jinja2/utils.py
parent[Lib] Update bottle.py to version 0.12.7 (diff)
downloadpyload-b8942672378fccc7d557dfc2e40a4d90aecf7a0d.tar.xz
[Lib] Revert libraries to original status (remove all cosmetics optimizations)
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 186fc6c44..7b77b8eb7 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 ''