<s> from __future__ import print_function <EOL> import gevent <EOL> from gevent import subprocess <EOL> p1 = subprocess . Popen ( [ '<STR_LIT>' ] , stdout = subprocess . PIPE ) <EOL> p2 = subprocess . Popen ( [ '<STR_LIT>' ] , stdout = subprocess . PIPE ) <EOL> gevent . wait ( [ p1 , p2 ] , timeout = <NUM_LIT:2> ) <EOL> if p1 . poll ( ) is not None : <EOL> print ( '<STR_LIT>' % p1 . stdout . read ( ) ) <EOL> else : <EOL> print ( '<STR_LIT>' ) <EOL> if p2 . poll ( ) is not None : <EOL> print ( '<STR_LIT>' % p2 . stdout . read ( ) ) <EOL> else : <EOL> print ( '<STR_LIT>' ) </s>
