Plugins/CheckerPlugins/Pep8/Pep8Fixer.py

changeset 2962
d6c9d1ca2da4
parent 2960
9453efa25fd5
child 2976
393f5faaa017
equal deleted inserted replaced
2961:e4e2efb4846a 2962:d6c9d1ca2da4
2582 def __normalizeMultiline(self, text): 2582 def __normalizeMultiline(self, text):
2583 """ 2583 """
2584 Private method to remove multiline-related code that will cause syntax 2584 Private method to remove multiline-related code that will cause syntax
2585 error. 2585 error.
2586 2586
2587 @param line code line to work on (string) 2587 @param text code line to work on (string)
2588 @return normalized code line (string) 2588 @return normalized code line (string)
2589 """ 2589 """
2590 for quote in '\'"': 2590 for quote in '\'"':
2591 dictPattern = r"^{q}[^{q}]*{q} *: *".format(q=quote) 2591 dictPattern = r"^{q}[^{q}]*{q} *: *".format(q=quote)
2592 if re.match(dictPattern, text): 2592 if re.match(dictPattern, text):

eric ide

mercurial