Skip to content

Commit

Permalink
PEP 8: update text about backlash (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
merwok authored Jan 17, 2022
1 parent d58d084 commit c5f4d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep-0008.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c5f4d78

Please sign in to comment.