summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils/syncdaemon/syncdutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/syncdutils.py')
-rw-r--r--xlators/features/marker/utils/syncdaemon/syncdutils.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py
new file mode 100644
index 00000000000..52dad8c5ff3
--- /dev/null
+++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py
@@ -0,0 +1,11 @@
+try:
+ # py 3
+ from urllib import parse as urllib
+except ImportError:
+ import urllib
+
+def escape(s):
+ return urllib.quote_plus(s)
+
+def unescape(s):
+ return urllib.unquote_plus(s)