microsoft / microsoft/azure-devops-python-api
Deprecation warning due to invalid escape sequences in Python 3.8
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 684
- Forks
- 218
- Avg merge
- 8d 10h
- Merged PRs (30d)
- 1
Description
Deprecation warnings are raised due to invalid escape sequences in Python 3.8 . Below is a log of the warnings raised during compiling all the python files. Using raw strings or escaping them will fix this issue.
find . -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {}
./azure-devops/azure/devops/v6_0/feed/models.py:101: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v6_0/feed/models.py:224: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v6_0/feed/models.py:1080: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v5_1/feed/models.py:101: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v5_1/feed/models.py:220: DeprecationWarning: invalid escape sequence \,
"""
./azure-devops/azure/devops/v5_1/feed/models.py:1049: DeprecationWarning: invalid escape sequence \,
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the shown find/xargs Python 3.8 compilation command and inspect the warning locations in azure-devops/azure/devops/v6_0/feed/models.py and v5_1/feed/models.py. Update the affected string literals so the invalid escape warnings disappear, then rerun the command across the Python files to confirm it is clean.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100