#!/usr/bin/python import monkDebug as debug import sys import monkTools import re listRegExp = [ [ r'#(.*?)\n', r'#\1\n'] ] def transcode(value): for reg1, reg2 in listRegExp: value = re.sub(reg1, reg2, value, flags=re.DOTALL) return value