Reordered functions in wk.std
This commit is contained in:
parent
1ffbd29ed5
commit
7a0a618b3f
1 changed files with 5 additions and 5 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue