Commit 8c579988 authored by Jakub Wilk's avatar Jakub Wilk

Fix incorrect use of flags in re.sub()

The 4th argument of re.sub() is maximum number of substitutions, not
flags.

re.M affects only semantics of ^ and $, so it wouldn't have any effect
on this regexp.
parent 53366b5f
...@@ -90,7 +90,7 @@ __doc__ = u""" ...@@ -90,7 +90,7 @@ __doc__ = u"""
import sys, re import sys, re
if sys.version_info >= (2,6): if sys.version_info >= (2,6):
__doc__ = re.sub(u"(ELLIPSIS[^>]*Error: )[^\n]*\n", u"\\1...\n", __doc__, re.M) __doc__ = re.sub(u"(ELLIPSIS[^>]*Error: )[^\n]*\n", u"\\1...\n", __doc__)
cdef sorteditems(d): cdef sorteditems(d):
l = list(d.items()) l = list(d.items())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment