5 # pylint: disable=C0103 |
5 # pylint: disable=C0103 |
6 |
6 |
7 """ |
7 """ |
8 Module implementing the syntax check for Python 2/3. |
8 Module implementing the syntax check for Python 2/3. |
9 """ |
9 """ |
|
10 |
|
11 try: # Only for Py2 |
|
12 import Queue as queue |
|
13 except ImportError: |
|
14 import queue |
10 |
15 |
11 import ast |
16 import ast |
12 import re |
17 import re |
13 import sys |
18 import sys |
14 import traceback |
19 import traceback |
15 import multiprocessing |
20 import multiprocessing |
16 import queue |
21 |
17 |
22 |
18 try: |
23 try: |
19 from pyflakes.checker import Checker |
24 from pyflakes.checker import Checker |
20 from pyflakes.messages import ImportStarUsed, ImportStarUsage |
25 from pyflakes.messages import ImportStarUsed, ImportStarUsage |
21 except ImportError: |
26 except ImportError: |