Show More
@@ -295,17 +295,17 b' def getdiff(expected, output, ref, err):' | |||||
295 |
|
295 | |||
296 | verbose = False |
|
296 | verbose = False | |
297 | def vlog(*msg): |
|
297 | def vlog(*msg): | |
298 | if verbose is not False: |
|
298 | """Log only when in verbose mode.""" | |
299 | iolock.acquire() |
|
299 | if verbose is False: | |
300 |
|
|
300 | return | |
301 | print verbose, |
|
301 | ||
302 | for m in msg: |
|
302 | return log(*msg) | |
303 | print m, |
|
|||
304 |
|
||||
305 | sys.stdout.flush() |
|
|||
306 | iolock.release() |
|
|||
307 |
|
303 | |||
308 | def log(*msg): |
|
304 | def log(*msg): | |
|
305 | """Log something to stdout. | |||
|
306 | ||||
|
307 | Arguments are strings to print. | |||
|
308 | """ | |||
309 | iolock.acquire() |
|
309 | iolock.acquire() | |
310 | if verbose: |
|
310 | if verbose: | |
311 | print verbose, |
|
311 | print verbose, |
General Comments 0
You need to be logged in to leave comments.
Login now