Skip to content

Commit

Permalink
remove debug cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Feb 26, 2016
1 parent fec92f9 commit 86b0eb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 86b0eb4

Please sign in to comment.