aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-04-18 23:35:12 +0200
committerSimon Warta <[email protected]>2017-04-18 23:35:12 +0200
commit027e9eee313f426ab96b7d361d0f3ef091f745fc (patch)
tree43c7ffdf293ef717174519fe8adec5ed9c2b3fa1 /configure.py
parent10f2684146b7b0c76d713f6d754b6962c5dfa0b4 (diff)
Reduce scope of file handling in HouseEccCurve._read_pem
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
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):
"""