##// END OF EJS Templates
Debug prints.
Itamar Turner-Trauring -
Show More
@@ -94,6 +94,7 b' def _find_cmd(cmd):'
94 def _system_body(p):
94 def _system_body(p):
95 """Callback for _system."""
95 """Callback for _system."""
96 enc = DEFAULT_ENCODING
96 enc = DEFAULT_ENCODING
97 print("READING...")
97 for line in read_no_interrupt(p.stdout).splitlines():
98 for line in read_no_interrupt(p.stdout).splitlines():
98 line = line.decode(enc, 'replace')
99 line = line.decode(enc, 'replace')
99 print(line, file=sys.stdout)
100 print(line, file=sys.stdout)
@@ -106,6 +107,7 b' def _system_body(p):'
106 # a loop instead of just doing `return p.wait()`.
107 # a loop instead of just doing `return p.wait()`.
107 while True:
108 while True:
108 result = p.poll()
109 result = p.poll()
110 print("POLLED")
109 if result is None:
111 if result is None:
110 time.sleep(0.01)
112 time.sleep(0.01)
111 else:
113 else:
General Comments 0
You need to be logged in to leave comments. Login now