Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarnings about invalid escape sequences #73

Closed
thmo opened this issue Jan 25, 2020 · 0 comments
Closed

DeprecationWarnings about invalid escape sequences #73

thmo opened this issue Jan 25, 2020 · 0 comments

Comments

@thmo
Copy link

thmo commented Jan 25, 2020

On Fedora 31, I see the following warnings when running the testsuite:

textile/core.py:47
  .../textile-4.0.0/textile/core.py:47: DeprecationWarning: invalid escape sequence \d
    btag = ('bq', 'bc', 'notextile', 'pre', 'h[1-6]', 'fn\d+', 'p', '###')

textile/core.py:353
  .../textile-4.0.0/textile/core.py:353: DeprecationWarning: invalid escape sequence \*
    nm = re.match("^(?P<nextlistitem>[#\*;:]+)(_|[\d]+)?{0}"

textile/core.py:844
  .../textile-4.0.0/textile/core.py:844: DeprecationWarning: invalid escape sequence \]
    m = re.search('(?P<url>^.*\])(?P<tight>\[.*?)$', url, flags=re.U)

textile/core.py:1262
  .../textile-4.0.0/textile/core.py:1262: DeprecationWarning: invalid escape sequence \:
    text_re = re.compile('<p>notelist({0})(?:\:([\w|{1}]))?([\^!]?)(\+?)'

textile/core.py:1263
  .../textile-4.0.0/textile/core.py:1263: DeprecationWarning: invalid escape sequence \.
    '\.?[\s]*</p>'.format(cls_re_s, syms_re_s), re.U)

These should be easily fixable by using raw strings instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant