aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-28 14:06:01 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-28 14:06:01 +0200
commit0baad1442c327f4376d3666b6b6cae77c544d4d2 (patch)
tree23a9be95d71ac21f214b19b43ffd514649ac18f5
parenta493fa23a45c4a211f81690542f56b063894d611 (diff)
downloadlinux-conf-perf-0baad1442c327f4376d3666b6b6cae77c544d4d2.tar.gz
linux-conf-perf-0baad1442c327f4376d3666b6b6cae77c544d4d2.tar.bz2
linux-conf-perf-0baad1442c327f4376d3666b6b6cae77c544d4d2.zip
Fix solution.apply error
-rw-r--r--scripts/solution.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/solution.py b/scripts/solution.py
index b3bec30..0e4efcd 100644
--- a/scripts/solution.py
+++ b/scripts/solution.py
@@ -81,8 +81,8 @@ def apply():
# Write solution to output_confs file
with open(sf(conf.output_confs), 'a') as f:
iteration = 0
- with open(sf(conf.iteration_file)) as f:
- iteration = int(f.readline)
+ with open(sf(conf.iteration_file)) as ff:
+ iteration = int(ff.readline())
f.write(str(iteration) + ':')
for txt in solut:
f.write(txt + ' ')