eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py

changeset 7249
0bf517e60f54
parent 6942
2602857055c5
child 7256
4ef3b78ebb4e
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py	Thu Sep 19 19:22:43 2019 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py	Thu Sep 19 19:39:04 2019 +0200
@@ -1323,9 +1323,8 @@
             newText = text[:col].rstrip() + text[col:].lstrip()
         
         # There could be an escaped newline
-        #
-        #     def foo(a=\
-        #             1)
+        # like 'def foo(a=\
+        #               1)'
         if newText.endswith(('=\\\n', '=\\\r\n', '=\\\r')):
             self.__source[line] = newText.rstrip("\n\r \t\\")
             self.__source[line + 1] = self.__source[line + 1].lstrip()
@@ -2115,7 +2114,7 @@
         nrows = 1 + self.tokens[-1][2][0] - first_row
 
         # here are the return values
-        valid_indents = [list()] * nrows
+        valid_indents = [[]] * nrows
         indent_level = self.tokens[0][2][1]
         valid_indents[0].append(indent_level)
 

eric ide

mercurial