mirror of
https://github.com/vee1e/capa-rules.git
synced 2026-09-01 19:07:15 +00:00
pep8
This commit is contained in:
parent
687816800a
commit
35bc03dd10
1 changed files with 5 additions and 4 deletions
9
.github/scripts/changelog_author.py
vendored
9
.github/scripts/changelog_author.py
vendored
|
|
@ -1,12 +1,13 @@
|
|||
import yaml
|
||||
import sys
|
||||
|
||||
import yaml
|
||||
|
||||
rule_file = sys.argv[1]
|
||||
with open(rule_file, 'r') as stream:
|
||||
with open(rule_file, "r") as stream:
|
||||
rule_yaml = yaml.safe_load(stream)
|
||||
|
||||
author_value = rule_yaml["rule"]["meta"]["author"]
|
||||
if isinstance(author_value, list): # list of authors
|
||||
if isinstance(author_value, list): # list of authors
|
||||
print(" ".join(author_value))
|
||||
else: # one author
|
||||
else: # one author
|
||||
print(author_value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue