From: lepture Date: Sat, 9 Jun 2012 04:53:29 +0000 (+0800) Subject: fix writing style line continuations to fit pep8 X-Git-Url: https://git.eng.unimelb.edu.au/public?p=python-guide.git;a=commitdiff_plain;h=e54f0c3376c8917b876cfe2622c3f4c98af99188 fix writing style line continuations to fit pep8 --- diff --git a/docs/writing/style.rst b/docs/writing/style.rst index bbc57d3..d2262a4 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -581,11 +581,14 @@ and square braces. .. code-block:: python - my_very_big_string = ("For a long time I used to go to bed early. Sometimes, " - "when I had put out my candle, my eyes would close so quickly that I had not even " - "time to say “I’m going to sleep.”") - - from some.deep.module.inside.a.module import (a_nice_function, another_nice_function, + my_very_big_string = ( + "For a long time I used to go to bed early. Sometimes, " + "when I had put out my candle, my eyes would close so quickly " + "that I had not even time to say “I’m going to sleep.”" + ) + + from some.deep.module.inside.a.module import (a_nice_function, + another_nice_function, yet_another_nice_functio) However, more often than not having to split long logical line is a sign that