1
"""Simple script that enables target specific blocks based on the first argument.
3
Matches comment blocks like this:
9
and de-comments them giving:
18
expr = re.compile(r'/\* For %s:\s([^*]+)\*/' % key, re.M)
20
for arg in sys.argv[2:]:
23
with open(arg, 'w') as f:
24
f.write(expr.sub(r'\1', body))
26
if __name__ == '__main__':