From eba7f0f7847762bae419e366354bb30e6230daeb Mon Sep 17 00:00:00 2001 From: Eric Cousineau Date: Wed, 30 Jan 2019 10:54:40 -0500 Subject: E402: Add "if" statement to allowed keywords --- testsuite/E40.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite') diff --git a/testsuite/E40.py b/testsuite/E40.py index 6d123b1..041ffb3 100644 --- a/testsuite/E40.py +++ b/testsuite/E40.py @@ -39,6 +39,11 @@ with warnings.catch_warnings(): warnings.filterwarnings("ignore", DeprecationWarning) import foo +import bar +#: Okay +if False: + import foo + import bar #: E402 VERSION = '1.2.3' -- cgit v1.2.1