Reordered functions in wk.std

This commit is contained in:
2Shirt 2019-07-17 18:02:42 -06:00
parent 1ffbd29ed5
commit 7a0a618b3f
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -182,6 +182,11 @@ def print_warning(msg, **kwargs):
print_colored([msg], ['YELLOW'], **kwargs)
def sleep(seconds=2):
"""Simple wrapper for time.sleep."""
time.sleep(seconds)
def strip_colors(string):
"""Strip known ANSI color escapes from string, returns str."""
LOG.debug('string: %s', string)
@ -190,10 +195,5 @@ def strip_colors(string):
return string
def sleep(seconds=2):
"""Simple wrapper for time.sleep."""
time.sleep(seconds)
if __name__ == '__main__':
print("This file is not meant to be called directly.")