diff options
author | Simon Warta <[email protected]> | 2017-04-18 23:35:12 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-04-18 23:35:12 +0200 |
commit | 027e9eee313f426ab96b7d361d0f3ef091f745fc (patch) | |
tree | 43c7ffdf293ef717174519fe8adec5ed9c2b3fa1 /configure.py | |
parent | 10f2684146b7b0c76d713f6d754b6962c5dfa0b4 (diff) |
Reduce scope of file handling in HouseEccCurve._read_pem
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.py b/configure.py index d62b6abd8..b4f238b10 100755 --- a/configure.py +++ b/configure.py @@ -1742,12 +1742,13 @@ class HouseEccCurve(object): try: with open(filepath) as f: lines = [line.rstrip() for line in f] - for ndx, _ in enumerate(lines): - lines[ndx] = ' \"%s\"' % lines[ndx] - return "\\\n" + ' \\\n'.join(lines) except IOError: raise UserError("Error reading file '%s'" % filepath) + for ndx, _ in enumerate(lines): + lines[ndx] = ' \"%s\"' % lines[ndx] + return "\\\n" + ' \\\n'.join(lines) + def create_template_vars(source_paths, build_config, options, modules, cc, arch, osinfo): """ |