Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1885)

Unified Diff: appengine/components/components/template.py

Issue 1478573003: Symlink test_env.py instead of test_support in preparation of jinja2. (Closed) Base URL: git@github.com:luci/luci-py.git@2_jinja2
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/components/components/template.py
diff --git a/appengine/components/components/template.py b/appengine/components/components/template.py
index ab9e71d3918bd79fd367ecb72c8ef0913f2543bf..1d2a3485c4bb934be9f0a5cc8def86de2278f60c 100644
--- a/appengine/components/components/template.py
+++ b/appengine/components/components/template.py
@@ -65,13 +65,6 @@ def _timedeltaformat(value):
return '%d:%02d' % (minutes, seconds)
-def _urlquote(s):
ghost stip (do not use) 2015/11/25 20:09:53 ???? can you split this to a sep CL
M-A Ruel 2015/11/26 02:47:34 Done.
- # TODO(maruel): Remove once jinja is upgraded to 2.7.
- if isinstance(s, jinja2.Markup):
- s = s.unescape()
- return jinja2.Markup(urllib.quote_plus(s.encode('utf8')))
-
-
# Filters available by default.
_DEFAULT_GLOBAL_FILTERS = {
'datetimeformat': _datetimeformat,
@@ -80,7 +73,6 @@ _DEFAULT_GLOBAL_FILTERS = {
'natsort': _natsorted,
'succinctdatetimeformat': _succinctdatetimeformat,
'timedeltaformat': _timedeltaformat,
- 'urlquote': _urlquote,
}
« no previous file with comments | « appengine/components/components/stats_framework_test.py ('k') | appengine/components/components/test_env.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698