Skip to content

Commit

Permalink
python2.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Jul 4, 2011
1 parent 7e9132e commit 3a978f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.py
Expand Up @@ -5,6 +5,7 @@
import subprocess
import signal
import sys
import os

def run(cmd, verbose=False, **kwargs):
if verbose:
Expand Down Expand Up @@ -34,7 +35,7 @@ def spawn(cmd, verbose=False, **kwargs):
return p

def wait(p, match, verbose=False):
p.send_signal(signal.SIGINT)
os.kill(p.pid, signal.SIGINT)
p.wait()
r = False
for line in p.stdout:
Expand Down

0 comments on commit 3a978f7

Please sign in to comment.