From 86b0eb4543fac87aff43e5a80b3ad57bf26644d6 Mon Sep 17 00:00:00 2001 From: Christopher Tomkins-Tinch Date: Fri, 26 Feb 2016 16:56:12 -0500 Subject: [PATCH] remove debug cruft --- util/file.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/file.py b/util/file.py index 18d7abbb6..bb3d7900f 100644 --- a/util/file.py +++ b/util/file.py @@ -371,8 +371,7 @@ def string_to_file_name(string_value): control_char_re = re.compile('[%s]' % re.escape(control_chars)) string_value = control_char_re.sub("_", string_value) - #for replacements_dict in replacements_dicts: - # # replacements from the dictionary above + # replacements from the dictionary above strs_to_replace_re = re.compile(r'|'.join(re.escape(key) for key in replacements_dict.keys())) string_value = strs_to_replace_re.sub(lambda x: replacements_dict.get(x.group(), "_"), string_value)