comparison mx/commands.py @ 7291:a748e4d44694

Truffle API to specify type-specalized Node classes; annotation processor for automatic code generation of the type-specialized Node classes during the build process
author Christian Humer <christian.humer@gmail.com>
date Fri, 21 Dec 2012 10:44:31 -0800
parents a81db08fe930
children 57edf6b07d36
comparison
equal deleted inserted replaced
7290:a81db08fe930 7291:a748e4d44694
394 stdin = p.stdin 394 stdin = p.stdin
395 if logFile: 395 if logFile:
396 log = open(logFile, 'w') 396 log = open(logFile, 'w')
397 ret = False 397 ret = False
398 while True: 398 while True:
399 line = stdout.readline().decode(sys.stdout.encoding) 399
400 # encoding may be None on windows plattforms
401 if sys.stdout.encoding is None:
402 encoding = 'utf-8'
403 else:
404 encoding = sys.stdout.encoding
405
406 line = stdout.readline().decode(encoding)
400 if logFile: 407 if logFile:
401 log.write(line.encode('utf-8')) 408 log.write(line.encode('utf-8'))
402 line = line.strip() 409 line = line.strip()
403 mx.log(line) 410 mx.log(line)
404 if line == STARTTOKEN: 411 if line == STARTTOKEN: