16 import os |
16 import os |
17 import re |
17 import re |
18 import sys |
18 import sys |
19 import tokenize |
19 import tokenize |
20 |
20 |
21 import pep8 |
21 # CodeStyleCheckerDialog tries to import FixableCodeStyleIssues what fail under |
|
22 # Python3. So ignore it. |
|
23 try: |
|
24 import pep8 |
|
25 except ImportError: |
|
26 pass |
22 |
27 |
23 # Tell 'lupdate' which strings to keep for translation. |
28 # Tell 'lupdate' which strings to keep for translation. |
24 QT_TRANSLATE_NOOP = lambda mod, txt: txt |
29 QT_TRANSLATE_NOOP = lambda mod, txt: txt |
25 |
30 |
26 FixableCodeStyleIssues = [ |
31 FixableCodeStyleIssues = [ |