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

Unified Diff: utils.py

Issue 19878007: Add build mailer capability to support gatekeeper_ng. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/chromium-build@master
Patch Set: Rebase to latest master Created 7 years, 4 months 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
« no previous file with comments | « tests/test_mailer/input.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils.py
diff --git a/utils.py b/utils.py
index b689666218034c1cb1207d17b7f9c94618b33ba9..0488d9484ebc85e5cbeb0f9aea5e6fc2b5ea0dae 100644
--- a/utils.py
+++ b/utils.py
@@ -12,6 +12,7 @@ import logging
import sys
import string
import json
+import urllib
from google.appengine.api import users
@@ -270,3 +271,6 @@ def cl_comment(value):
# Obfuscure email addresses with rot13 encoding.
value = re.sub(r'(\w+@[\w.]+)', lambda m: rot13_email(m.group(1)), value)
return value
+
+def urlquote(value, safe=''):
+ return urllib.quote(value, safe=safe)
« no previous file with comments | « tests/test_mailer/input.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698