Chilipp / docrep

A Python Module for intelligent reuse of docstrings
Apache License 2.0
30 stars 4 forks source link

Deprecated regex #12

Closed rainwoodman closed 5 years ago

rainwoodman commented 5 years ago

I am reporting this deprecation warning:

docrep.py:24: DeprecationWarning: Flags not at the start of the expression '(?<!%)(%%)*%(?!%)   ' (truncated)
    \((?P<key>(?s).*?)\)# key enclosed in brackets""", re.VERBOSE)

Line 24 is:

substitution_pattern = re.compile(
    r"""(?<!%)(%%)*%(?!%)   # uneven number of %
        \((?P<key>(?s).*?)\)# key enclosed in brackets""", re.VERBOSE)
Chilipp commented 5 years ago

closed by https://github.com/Chilipp/docrep/pull/13

I will draft a new release now. Thanks a lot for reporting! 😃