--- 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)