Tweaks to machine

This commit is contained in:
John Goerzen 2007-07-05 14:22:57 +01:00
parent c6f01fb3c8
commit 1af12e99a1

View File

@ -25,7 +25,7 @@ protocol = '6.0.0'
class MachineUI(UIBase): class MachineUI(UIBase):
def __init__(s, config, verbose = 0): def __init__(s, config, verbose = 0):
UIBase.__init__(s, config, verbose) UIBase.__init__(s, config, verbose)
s.safechars=" ;,./-_=+" s.safechars=" ;,./-_=+()[]"
s.iswaiting = 0 s.iswaiting = 0
s.outputlock = Lock() s.outputlock = Lock()
s._printData('__init__', protocol) s._printData('__init__', protocol)
@ -137,7 +137,7 @@ class MachineUI(UIBase):
ds)) ds))
def threadException(s, thread): def threadException(s, thread):
print s.getThreadExceptionString(thread) #FIXME: remove print s.getThreadExceptionString(thread)
s._printData('threadException', "%s\n%s" % \ s._printData('threadException', "%s\n%s" % \
(thread.getName(), s.getThreadExceptionString(thread))) (thread.getName(), s.getThreadExceptionString(thread)))
s.delThreadDebugLog(thread) s.delThreadDebugLog(thread)