Skip to content

Commit

Permalink
Use 'not in' to test membership
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 7, 2025
1 parent 7cb5abb commit 1e6dd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blurb/blurb.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def finish_entry():
if "gh-issue" not in metadata and "bpo" not in metadata:
throw("'gh-issue:' or 'bpo:' must be specified in the metadata!")

if not 'section' in metadata:
if 'section' not in metadata:
throw("No 'section' specified. You must provide one!")

self.append((metadata, text))
Expand Down

0 comments on commit 1e6dd0f

Please sign in to comment.