One-line docstring should fit on one line with quotes
16 self.enableRotation = settings.ENABLE_LOGROTATION
17
18 def _openFile(self):
19 """ 20 Fix Umask Issue https://twistedmatrix.com/trac/ticket/7026
21 """
22 openMode = self.defaultMode or 0o777
Description
If a docstring fits in a single line (72 characters according to PEP8), it is recommended to have the quotes on the same line.
Bad practice
def foo():
"""
Runs bar and returns baz.
"""
baz = bar()
return baz
Recommended
def foo():
"""Runs bar and returns baz."""
baz = bar()
return baz