diff options
author | Eisuke Kawashima <e-kwsm@users.noreply.github.com> | 2021-10-15 22:54:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 06:54:46 -0700 |
commit | 967840543f1f20754dd1579083e8a8271ab6cb62 (patch) | |
tree | 6a1a94c4b8f07494c6eb077720986b86058cc635 /utils/internal/make_fake_typedefs.py | |
parent | d554122e2a5702daeb68a3714826c1c7df8cbea3 (diff) | |
download | pycparser-967840543f1f20754dd1579083e8a8271ab6cb62.tar.gz |
Fix Flake8 Errors (#442)
* Fix PEP8 [E101](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)
* Fix PEP8 [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)
* Fix E999 (python2)
* Fix PEP8 [F401](https://flake8.pycqa.org/en/4.0.1/user/error-codes.html)
Diffstat (limited to 'utils/internal/make_fake_typedefs.py')
-rw-r--r-- | utils/internal/make_fake_typedefs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/internal/make_fake_typedefs.py b/utils/internal/make_fake_typedefs.py index b82e92f..5ffd04b 100644 --- a/utils/internal/make_fake_typedefs.py +++ b/utils/internal/make_fake_typedefs.py @@ -1,12 +1,13 @@ +from __future__ import print_function import sys sys.path.insert(0, '../..') -from pycparser import c_parser, c_ast, parse_file +from pycparser import c_ast, parse_file class MyVisitor(c_ast.NodeVisitor): def visit_Typedef(self, node): - print 'typedef int %s;' % node.name + print('typedef int %s;' % node.name) |