This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: bundled pip syntaxwarning
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Dima.Tisnek, dstufft, ncoghlan, pradyunsg, xtreak
Priority: normal Keywords:

Created on 2019-01-30 04:23 by Dima.Tisnek, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg334542 - (view) Author: Dima Tisnek (Dima.Tisnek) * Date: 2019-01-30 04:23
It seems that `pip` vendored/bundled with Python3.8 doesn't conform to 3.8 syntax:

… ~> /usr/local/bin/python3.8 -m ensurepip
/.../tmp.../pip-18.1-py2.py3-none-any.whl/pip/_vendor/requests/status_codes.py:3: SyntaxWarning: invalid escape sequence \o
/.../tmp.../pip-18.1-py2.py3-none-any.whl/pip/_vendor/requests/status_codes.py:3: SyntaxWarning: invalid escape sequence \o
Looking in links: /.../tmp...
Requirement already satisfied: setuptools in /usr/local/lib/python3.8/site-packages (40.6.2)
Requirement already satisfied: pip in /usr/local/lib/python3.8/site-packages (18.1)

Python 3.8.0a0 (bafa8487f77fa076de3a06755399daf81cb75598) built from source
msg334543 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-01-30 04:38
This needs to be updated in vendor files for pip repo and then updating the files in CPython. The upstream issue on requests is fixed.
msg356450 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-11-12 12:43
I think this is fixed in pip's side with requests package upgraded with https://github.com/pypa/pip/commit/785ecf476a63e00819ef1b14bc8ee758dc9c12cb#diff-9235561c186d44f2bb0eef8b7f1d57ceR3 using raw string literls. I think we can close this as outdated and further issues also need to be fixed from pip's repo. Adding pradyun.
msg356457 - (view) Author: Pradyun Gedam (pradyunsg) * Date: 2019-11-12 13:52
Closing this sounds reasonable to me!

There are a couple of pending PRs for updating the pip, in the current
versions of CPython. That's being tracked separately so likely don't need
this to stay open anymore.

On Tue, 12 Nov 2019 at 6:20 PM, Inada Naoki <report@bugs.python.org> wrote:

>
> Change by Inada Naoki <songofacandy@gmail.com>:
>
>
> ----------
> resolution:  -> third party
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue35856>
> _______________________________________
>
History
Date User Action Args
2022-04-11 14:59:10adminsetgithub: 80037
2019-11-12 13:52:43pradyunsgsetmessages: + msg356457
2019-11-12 12:50:33methanesetstatus: open -> closed
resolution: third party
stage: resolved
2019-11-12 12:43:16xtreaksetnosy: + pradyunsg
messages: + msg356450
2019-01-30 04:38:56xtreaksetnosy: + xtreak, ncoghlan, dstufft
messages: + msg334543
2019-01-30 04:23:52Dima.Tisnekcreate