Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class sleep:
- def __init__(self, secs):
- self.secs = secs
- def __call__(self, func):
- from functools import wraps
- @wraps(func)
- def wrapper(*args, **kwargs):
- from time import sleep
- sleep(self.secs)
- return func(*args, **kwargs)
- return wrapper
Add Comment
Please, Sign In to add comment