src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
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

eric ide

mercurial