fix: add reset_replace_colors to __all__

This commit is contained in:
Matthew Peveler
2019-10-09 15:38:35 -03:00
parent 6b6d9ca901
commit 3a218b9a15
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -17,7 +17,8 @@ COLORS = (
)
__all__ = COLORS + (
'normal', 'clean', 'disable', 'enable', 'random', 'replace_colors'
'normal', 'clean', 'disable', 'enable', 'random',
'replace_colors', 'reset_replace_colors'
)
colorama.init()
@@ -169,7 +170,7 @@ def replace_colors(replace_dict):
REPLACE_COLORS = {k.upper(): v.upper() for k, v in replace_dict.items()}
def reset_replace():
def reset_replace_colors():
"""Reset any set replace colors."""
global REPLACE_COLORS
+1 -1
View File
@@ -44,5 +44,5 @@ print(clean('{} clean {}'.format(red('red'), blue('blue')))) # NOQA
crayons.replace_colors({'magenta': 'blue'})
print(crayons.magenta('this is blue!'))
crayons.reset_replace()
crayons.reset_replace_colors()
print(crayons.magenta('this is magenta again!'))