Commits

Jan Borsodi committed 718cd7a

Removed flags from re.sub, not supported on all python versions and not really needed.

  • Participants
  • Parent commits 007b56e
  • Branches repo-manager

Comments (0)

Files changed (1)

     elif cmt.startswith("/**") and cmt.endswith("*/"):
         m = re.match(r"/\*\*(?:\w*[\n])?(.+)/$", cmt, re.DOTALL | re.MULTILINE)
         cmt = m.group(1)
-        cmt = "".join([re.sub("^[ \t]*[*]", "", line, flags=re.MULTILINE) for line in cmt.splitlines(True)])
+        cmt = "".join([re.sub("^[ \t]*[*]", "", line) for line in cmt.splitlines(True)])
     return textwrap.dedent(cmt)
 
 words_re = re.compile("([A-Z][A-Z0-9]*(?=[A-Z][a-z0-9]))|([A-Z][A-Z0-9]*$)|([A-Z][a-z0-9]*)|([a-z][a-z0-9]*)")