miracle2k / miracle2k/python-glob2

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.

Dominant language
Python
Stars
125
Forks
20
PR merge metrics
No merged PRs in 30d

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'

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.