PEP 8: update text about backlash (#2244)

This commit is contained in:
Éric 2022-01-17 00:44:11 -05:00 committed by GitHub
parent d58d084caf
commit c5f4d78b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ parentheses. These should be used in preference to using a backslash
for line continuation.
Backslashes may still be appropriate at times. For example, long,
multiple ``with``-statements cannot use implicit continuation, so
backslashes are acceptable::
multiple ``with``-statements could not use implicit continuation
before Python 3.10, so backslashes were acceptable for that case::
with open('/path/to/some/file/you/want/to/read') as file_1, \
open('/path/to/some/file/being/written', 'w') as file_2: