diff options
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/syncdutils.py')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/syncdutils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py index 56bc515d4..48694d238 100644 --- a/xlators/features/marker/utils/syncdaemon/syncdutils.py +++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py @@ -15,6 +15,10 @@ def escape(s): def unescape(s): return urllib.unquote_plus(s) +def norm(s): + if s: + return s.replace('-', '_') + def update_file(path, updater, merger = lambda f: True): """update a file in a transaction-like manner""" |