Style: follow PEP8

This commit is contained in:
Gilles Peskine 2020-01-28 19:00:59 +01:00
parent d8b6c77388
commit 974349d40e

View file

@ -113,7 +113,7 @@ class ChangeLog:
elif level == 3 and level_2_seen == 1: elif level == 3 and level_2_seen == 1:
current_section = content current_section = content
self.section_content.setdefault(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(): if line.strip():
self.section_content[current_section].append(line) self.section_content[current_section].append(line)
elif level_2_seen <= 1: elif level_2_seen <= 1: