From: Paul Vinciguerra Date: Tue, 5 May 2020 15:46:26 +0000 (-0400) Subject: misc: fts add support for non-ascii author names in yaml X-Git-Tag: v20.09-rc0~46 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F26887%2F2;p=vpp.git misc: fts add support for non-ascii author names in yaml Type: fix Change-Id: I3f034ca86412b58d3e41a627bd8902157683435a Signed-off-by: Paul Vinciguerra --- 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