aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment_file.py
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-06-21 15:08:08 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-06-21 15:08:08 +0000
commit4c3de78dab9c67d41c0f2ba73cb4868885cd7ea1 (patch)
tree73936aba47fe1dc71e9cc05af9747036e935608c /crosperf/experiment_file.py
parentb75f321fc8978b92ce3db6886ccb966768f0c7a8 (diff)
parent4e4201457e5f51a132101c611c79ccff9f713c8b (diff)
downloadtoolchain-utils-android12-mainline-ipsec-release.tar.gz
Change-Id: I1a48a66c54fe2d52748d1edcc260236dda4f655e
Diffstat (limited to 'crosperf/experiment_file.py')
-rw-r--r--crosperf/experiment_file.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/crosperf/experiment_file.py b/crosperf/experiment_file.py
index 1d89edad..d2831bda 100644
--- a/crosperf/experiment_file.py
+++ b/crosperf/experiment_file.py
@@ -95,7 +95,8 @@ class ExperimentFile(object):
if not line:
continue
- elif ExperimentFile._FIELD_VALUE_RE.match(line):
+
+ if ExperimentFile._FIELD_VALUE_RE.match(line):
field = self._ParseField(reader)
settings.SetField(field[0], field[1], field[2])
elif ExperimentFile._CLOSE_SETTINGS_RE.match(line):
@@ -113,7 +114,8 @@ class ExperimentFile(object):
if not line:
continue
- elif ExperimentFile._OPEN_SETTINGS_RE.match(line):
+
+ if ExperimentFile._OPEN_SETTINGS_RE.match(line):
new_settings, settings_type = self._ParseSettings(reader)
# We will allow benchmarks with duplicated settings name for now.
# Further decision will be made when parsing benchmark details in