8000 python2.5 compatibility · syk-coder/rabbitmq-tutorials@3a978f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a978f7

Browse files
committed
python2.5 compatibility
1 parent 7e9132e commit 3a978f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import subprocess
66
import signal
77
import sys
8+
import os
89

910
def run(cmd, verbose=False, **kwargs):
1011
if verbose:
@@ -34,7 +35,7 @@ def spawn(cmd, verbose=False, **kwargs):
3435
return p
3536

3637
def wait(p, match, verbose=False):
37-
p.send_signal(signal.SIGINT)
38+
os.kill(p.pid, signal.SIGINT)
3839
p.wait()
3940
r = False
4041
for line in p.stdout:

0 commit comments

Comments
 (0)
0