From 7a0a618b3f2633631b86aa58366f49d7f9b7c813 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Wed, 17 Jul 2019 18:02:42 -0600 Subject: [PATCH] Reordered functions in wk.std --- scripts/wk/std.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index 79aaffdb..0d0989a9 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -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.")