Plugins/CheckerPlugins/Pep8/Pep8Fixer.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2911
ce77f0b1ee67
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a class to fix certain PEP 8 issues. 7 Module implementing a class to fix certain PEP 8 issues.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 import re 13 import re
12 14
13 from PyQt4.QtCore import QObject 15 from PyQt4.QtCore import QObject
36 (list of string) 38 (list of string)
37 @param fixCodes list of codes to be fixed as a comma separated 39 @param fixCodes list of codes to be fixed as a comma separated
38 string (string) 40 string (string)
39 @param inPlace flag indicating to modify the file in place (boolean) 41 @param inPlace flag indicating to modify the file in place (boolean)
40 """ 42 """
41 super().__init__() 43 super(Pep8Fixer, self).__init__()
42 44
43 self.__project = project 45 self.__project = project
44 self.__filename = filename 46 self.__filename = filename
45 self.__origName = "" 47 self.__origName = ""
46 self.__source = sourceLines[:] # save a copy 48 self.__source = sourceLines[:] # save a copy

eric ide

mercurial