aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/collect_yaml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/collect_yaml.py b/scripts/collect_yaml.py
index b5f3172..0fb5ee6 100755
--- a/scripts/collect_yaml.py
+++ b/scripts/collect_yaml.py
@@ -38,9 +38,9 @@ def main():
args = parser.parse_args()
try:
- keys = list(map(str.strip, open(args.keys).readlines()))
+ keys = [k.strip() for k in open(args.keys).readlines()]
except FileNotFoundError:
- keys = list(map(str.strip, args.keys.split(",")))
+ keys = [k.strip() for k in args.keys.split(",")]
if args.verbose:
print("keys:", keys, file=sys.stderr)