From 36686f47173cb97cf574a2379190e4a8e34abed5 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Tue, 5 May 2020 11:46:26 -0400 Subject: misc: fts add support for non-ascii author names in yaml Type: fix Change-Id: I3f034ca86412b58d3e41a627bd8902157683435a Signed-off-by: Paul Vinciguerra --- src/scripts/fts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/scripts/fts.py b/src/scripts/fts.py index f5ac4d858de..c1dd882c8be 100755 --- a/src/scripts/fts.py +++ b/src/scripts/fts.py @@ -248,12 +248,12 @@ def main(): featurefile = featurefile.rstrip() # Load configuration file - with open(featurefile) as f: + with open(featurefile, encoding='utf-8') as f: cfg = yaml.load(f, Loader=yaml.SafeLoader) try: validate(instance=cfg, schema=schema) except exceptions.ValidationError: - print('File does not validate: {featurefile}', + print(f'File does not validate: {featurefile}', file=sys.stderr) raise features[featurefile] = cfg -- cgit 1.2.3-korg