This is an archive of the discontinued Mercurial Phabricator instance.

contrib: enforce wrapping too-long lines with () instead of \
ClosedPublic

Authored by durin42 on Feb 20 2019, 7:34 PM.

Details

Summary

This is the style I prefer, and an anecdotal exploration of styles
recommended in style guides etc. Further, to quote pep8:

The preferred way of wrapping long lines is by using Python's implied
line continuation inside parentheses, brackets and braces. Long lines
can be broken over multiple lines by wrapping expressions in
parentheses. These should be used in preference to using a backslash
for line continuation.

So I think this is a virtuous change.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Feb 20 2019, 7:34 PM
This revision was automatically updated to reflect the committed changes.