10 # |
10 # |
11 # The routines of the checker class are modeled after the ones found in |
11 # The routines of the checker class are modeled after the ones found in |
12 # pep257.py (version 0.2.4). |
12 # pep257.py (version 0.2.4). |
13 # |
13 # |
14 |
14 |
|
15 import ast |
|
16 import contextlib |
15 import tokenize |
17 import tokenize |
16 import ast |
18 |
17 from io import StringIO |
19 from io import StringIO |
18 import contextlib |
|
19 |
20 |
20 try: |
21 try: |
21 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ |
22 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ |
22 except AttributeError: |
23 except AttributeError: |
23 ast.AsyncFunctionDef = ast.FunctionDef |
24 ast.AsyncFunctionDef = ast.FunctionDef |