chiark
/
gitweb
/
~ian
/
moebius3.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
python2 compat for helixish
[moebius3.git]
/
moedebug.py
1
2
from __future__ import print_function
3
4
_files = []
5
6
def dbg_file(f):
7
_files.append(f)
8
9
def dbg_enabled():
10
return not not _files
11
12
def dbg(*args):
13
for f in _files:
14
print('// D ', *args, file=f)
15
f.flush()