Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
djrobstep committed Nov 2, 2018
1 parent 210ecb2 commit 7847c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -53,9 +53,7 @@ for n in await_pg_notifications(
# occurrence of a handled signal
if isinstance(n, int):
sig = signal.Signals(n)
if n in SIGNALS_TO_HANDLE:
print(f"handling {sig.name}")
print("interrupted, stopping")
print(f"handling {sig.name}, stopping")
break

# the `yield_on_timeout` option makes the
Expand Down
4 changes: 1 addition & 3 deletions example.py
Expand Up @@ -23,9 +23,7 @@
# occurrence of a handled signal
if isinstance(n, int):
sig = signal.Signals(n)
if n in SIGNALS_TO_HANDLE:
print(f"handling {sig.name}")
print("interrupted, stopping")
print(f"handling {sig.name}, stopping")
break

# the `yield_on_timeout` option makes the
Expand Down

0 comments on commit 7847c7f

Please sign in to comment.