diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-05-02 23:30:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 23:30:29 +0300 |
commit | 1f4023fa47803458700e52352dec51f3f85fa6c1 (patch) | |
tree | e4b2790ff92404ad6f939832922770b9a359908e /mesonbuild/mparser.py | |
parent | 06bfc2dab61c5bf79265a8db777b02732ee86ecf (diff) | |
parent | 74b535fea74843c83944e9f22d40e6259ca105b8 (diff) | |
download | meson-1f4023fa47803458700e52352dec51f3f85fa6c1.zip meson-1f4023fa47803458700e52352dec51f3f85fa6c1.tar.gz meson-1f4023fa47803458700e52352dec51f3f85fa6c1.tar.bz2 |
Merge pull request #5311 from mensinda/flake8Plugins
Added flake8 plugins and some code fixes
Diffstat (limited to 'mesonbuild/mparser.py')
-rw-r--r-- | mesonbuild/mparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mparser.py b/mesonbuild/mparser.py index 4305a7c..b4fb032 100644 --- a/mesonbuild/mparser.py +++ b/mesonbuild/mparser.py @@ -217,7 +217,7 @@ class BaseNode: fname = 'visit_{}'.format(type(self).__name__) if hasattr(visitor, fname): func = getattr(visitor, fname) - if hasattr(func, '__call__'): + if callable(func): func(self) class ElementaryNode(BaseNode): |