feat: add function to reset replace codes

This commit is contained in:
Matthew Peveler
2019-10-09 13:07:58 -03:00
parent a7ebd892aa
commit eb50b1ab9f
+7
View File
@@ -168,3 +168,10 @@ def replace_colors(replace_dict):
assert isinstance(replace_dict, dict)
REPLACE_COLORS = {k.upper(): v.upper() for k, v in replace_dict.items()}
def reset_replace():
"""Reset any set replace colors."""
global REPLACE_COLORS
REPLACE_COLORS = {}