Skip to content

Commit fc40388

Browse files
author
Kenneth Reitz
committed
Merge pull request realpython#168 from lepture/master
Writing Style Guide Line Continuations
2 parents 2153e93 + e54f0c3 commit fc40388

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/writing/style.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,14 @@ and square braces.
581581
582582
.. code-block:: python
583583
584-
my_very_big_string = ("For a long time I used to go to bed early. Sometimes, "
585-
"when I had put out my candle, my eyes would close so quickly that I had not even "
586-
"time to say “I’m going to sleep.”")
587-
588-
from some.deep.module.inside.a.module import (a_nice_function, another_nice_function,
584+
my_very_big_string = (
585+
"For a long time I used to go to bed early. Sometimes, "
586+
"when I had put out my candle, my eyes would close so quickly "
587+
"that I had not even time to say “I’m going to sleep.”"
588+
)
589+
590+
from some.deep.module.inside.a.module import (a_nice_function,
591+
another_nice_function,
589592
yet_another_nice_functio)
590593
591594
However, more often than not having to split long logical line is a sign that

0 commit comments

Comments
 (0)