Deprecation warning due to invalid escape sequences in Python 3.8

Open Beginner friendly
#25 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Start with glob2/fnmatch.py at line 141 and reproduce the warning using the Python 3.8 py_compile command shown in the issue. Update the invalid escape handling so the deprecation warning no longer appears, then rerun the command across the Python files to confirm it is gone.

Written by the indexing model from the issue text.

Description

find . -iname '*.py'  | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}

./glob2/fnmatch.py:141: DeprecationWarning: invalid escape sequence \Z
  return '(?ms)' + res + '\Z'
Dominant language
Python
Stars
125
Forks
20
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from miracle2k/python-glob2

All issues in miracle2k/python-glob2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.