microsoft / microsoft/azure-devops-python-api

Deprecation warning due to invalid escape sequences in Python 3.8

Open
#314 0 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.