summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-05-05 11:46:26 -0400
committerOle Trøan <otroan@employees.org>2020-05-06 09:46:12 +0000
commit36686f47173cb97cf574a2379190e4a8e34abed5 (patch)
tree368e5dc9f31002b91d866cadf614a62da590b463 /src
parent8f8212b245ec7a411f98209663f310fe72c28edc (diff)
misc: fts add support for non-ascii author names in yaml
Type: fix Change-Id: I3f034ca86412b58d3e41a627bd8902157683435a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scripts/fts.py4
1 files changed, 2 insertions, 2 deletions
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