Skip to content

Commit

Permalink
Utils: add wait() helper function to pause execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mebeim committed Dec 8, 2020
1 parent 68fb45a commit cc9a4bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def fn(s, *a):
def eprint(*a, **kwa):
print(*a, **kwa, file=sys.stderr)

def wait(msg):
eprint(msg, end=' ')
input()

def dump_iterable(iterable, fmt='{}'):
for item in iterable:
log(fmt + '\n', item)
Expand Down

0 comments on commit cc9a4bd

Please sign in to comment.