Added sleep()
This commit is contained in:
parent
ac7fcb2e0b
commit
86d9979a7f
1 changed files with 7 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from termios import tcflush, TCIOFLUSH
|
from termios import tcflush, TCIOFLUSH
|
||||||
|
|
@ -148,5 +149,11 @@ def strip_colors(string):
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
||||||
|
def sleep(seconds=2):
|
||||||
|
"""Simple wrapper for time.sleep."""
|
||||||
|
LOG.debug('Sleeping for %s seconds', seconds)
|
||||||
|
time.sleep(seconds)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue