gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 0d8500c739)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
Miss Islington (bot) 2022-05-17 09:44:23 -07:00 committed by GitHub
parent 5c826ef0a5
commit 76b81be413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1116,8 +1116,8 @@ Deprecated
that was added in Python 3.10.
(Contributed by Raymond Hettinger in :gh:`89519`.)
* Octal escapes with value larger than ``0o377`` now produce
a :exc:`DeprecationWarning`.
* Octal escapes in string and bytes literals with value larger than ``0o377`` now
produce :exc:`DeprecationWarning`.
In a future Python version they will be a :exc:`SyntaxWarning` and
eventually a :exc:`SyntaxError`.
(Contributed by Serhiy Storchaka in :gh:`81548`.)