def remove_coding(text):
 sub_re = re.compile(u'^#\\s*-\\*-\\s*coding:\\s*.*-\\*-$', flags=re.MULTILINE)
 return sub_re.sub(u'', text)

def remove_coding ( text ) : sub_re = re . compile ( u'^#\\s*-\\*-\\s*coding:\\s*.*-\\*-$' , flags = re . MULTILINE ) return sub_re . sub ( u'' , text )
remove the coding comment .