Skip to content

Commit

Permalink
Merge pull request #21 from dshen109/gevent
Browse files Browse the repository at this point in the history
cmd: make compatible with gevent>1.4.0
  • Loading branch information
shakefu committed Oct 23, 2020
2 parents 3b54b1f + fec06f3 commit dca17b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pytool/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
except ImportError:
signal_handler = signal.signal
else:
signal_handler = gevent.signal
try:
signal_handler = gevent.signal_handler
except AttributeError:
# handle gevent<=1.4.0
signal_handler = gevent.signal


__all__ = [
Expand Down

0 comments on commit dca17b8

Please sign in to comment.