From c991d911b2969acc637e5e2e746a9e5b6ad3bbef Mon Sep 17 00:00:00 2001 From: Eduard Tudenhoefner Date: Mon, 28 Feb 2022 08:49:26 +0100 Subject: [PATCH] Make flake8-bandit work with latest bandit 1.7.3 version Fixes #21 flake8-bandit 1.7.3 (https://github.com/PyCQA/bandit/pull/496) introduced an `fdata` argument and this just passes a `None` to make things work with the latest version of bandit. --- flake8_bandit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flake8_bandit.py b/flake8_bandit.py index 117ca2c..cbaa9b2 100644 --- a/flake8_bandit.py +++ b/flake8_bandit.py @@ -108,6 +108,7 @@ def _check_source(self): bnv = BanditNodeVisitor( self.filename, + None, BanditMetaAst(), BanditTestSet(BanditConfig(), profile=config.profile), False,