5 |
5 |
6 """ |
6 """ |
7 Module implementing the syntax check for Python 3. |
7 Module implementing the syntax check for Python 3. |
8 """ |
8 """ |
9 |
9 |
|
10 import ast |
|
11 import contextlib |
|
12 import multiprocessing |
10 import queue |
13 import queue |
11 import ast |
|
12 import re |
14 import re |
13 import traceback |
15 import traceback |
14 import multiprocessing |
|
15 import contextlib |
|
16 |
16 |
17 with contextlib.suppress(ImportError): |
17 with contextlib.suppress(ImportError): |
18 from pyflakes.checker import Checker |
18 from pyflakes.checker import Checker |
19 from pyflakes.messages import ImportStarUsed, ImportStarUsage |
19 from pyflakes.messages import ImportStarUsage, ImportStarUsed |
20 |
20 |
21 VcsConflictMarkerRegExpList = ( |
21 VcsConflictMarkerRegExpList = ( |
22 re.compile( |
22 re.compile( |
23 r"""^<<<<<<< .*?\|\|\|\|\|\|\| .*?=======.*?>>>>>>> .*?$""", |
23 r"""^<<<<<<< .*?\|\|\|\|\|\|\| .*?=======.*?>>>>>>> .*?$""", |
24 re.MULTILINE | re.DOTALL, |
24 re.MULTILINE | re.DOTALL, |