From 974349d40e69b4e93102abebc79dd54e7beeb4bc Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 28 Jan 2020 19:00:59 +0100 Subject: [PATCH] Style: follow PEP8 --- scripts/assemble_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py index 3d82c1127..616978e32 100755 --- a/scripts/assemble_changelog.py +++ b/scripts/assemble_changelog.py @@ -113,7 +113,7 @@ class ChangeLog: elif level == 3 and level_2_seen == 1: current_section = content self.section_content.setdefault(content, []) - elif level_2_seen == 1 and current_section != None: + elif level_2_seen == 1 and current_section is not None: if line.strip(): self.section_content[current_section].append(line) elif level_2_seen <= 1: