src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py

branch
eric7
changeset 9453
e5065dde905d
parent 9422
cf2ea9c6316a
child 9473
3f23dbf37dbe
--- a/src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py	Mon Oct 31 14:09:07 2022 +0100
+++ b/src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py	Mon Oct 31 15:29:18 2022 +0100
@@ -216,9 +216,7 @@
                 docstringList.append(self.__quote3)
                 for index, line in enumerate(docstringList):
                     docstringList[index] = (
-                        indentation + line
-                        if bool(line.strip())
-                        else ""
+                        indentation + line if bool(line.strip()) else ""
                     )
                 return sep.join(docstringList) + sep, (insertLine, 0), newCursorLine
 
@@ -324,9 +322,7 @@
                     docstringList.append(self.__quote3)
                 for index, line in enumerate(docstringList):
                     docstringList[index] = (
-                        indentation + line
-                        if bool(line.strip())
-                        else ""
+                        indentation + line if bool(line.strip()) else ""
                     )
                 docstring = sep.join(docstringList) + indentation
                 return docstring, cursorPosition, newCursorLine

eric ide

mercurial