Remove prints
This commit is contained in:
parent
5c7ba50e55
commit
b3981a5627
@ -30,14 +30,12 @@ class MplayerProtocol(LineProcessProtocol):
|
|||||||
if not line.startswith('ANS_'):
|
if not line.startswith('ANS_'):
|
||||||
sys.stdout.write(line+'\n')
|
sys.stdout.write(line+'\n')
|
||||||
return
|
return
|
||||||
print line
|
|
||||||
m = RE_ANSWER.match(line)
|
m = RE_ANSWER.match(line)
|
||||||
if not m:
|
if not m:
|
||||||
return
|
return
|
||||||
|
|
||||||
name, value = m.group(1).lower(), m.group(2)
|
name, value = m.group(1).lower(), m.group(2)
|
||||||
handler = getattr(self, 'answer_' + name, None)
|
handler = getattr(self, 'answer_' + name, None)
|
||||||
print value
|
|
||||||
if handler:
|
if handler:
|
||||||
handler(value)
|
handler(value)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user