src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py

branch
eric7
changeset 10050
3750abc45d5e
parent 9653
e67609152c5e
child 10060
b946699e9e79
equal deleted inserted replaced
10049:61a1757626ac 10050:3750abc45d5e
2951 2951
2952 maxLength = max(offset + len(x.strip()) for x in lines) 2952 maxLength = max(offset + len(x.strip()) for x in lines)
2953 rank += maxLength 2953 rank += maxLength
2954 rank += len(lines) 2954 rank += len(lines)
2955 2955
2956 badStartingSymbol = {"(": ")", "[": "]", "{": "}"}.get(lines[0][-1], None) 2956 badStartingSymbol = {"(": ")", "[": "]", "{": "}"}.get(lines[0][-1])
2957 2957
2958 if ( 2958 if (
2959 len(lines) > 1 2959 len(lines) > 1
2960 and badStartingSymbol 2960 and badStartingSymbol
2961 and lines[1].lstrip().startswith(badStartingSymbol) 2961 and lines[1].lstrip().startswith(badStartingSymbol)

eric ide

mercurial