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) |