Skip to content

Commit 54e3335

Browse files
committed
Optimized parsing of configuration file options.
1 parent 76eb73f commit 54e3335

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/seleniumbender.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ def main():
232232
try:
233233
config_parser.read(config)
234234
for section in sections:
235-
options = config_parser.options(section)
236-
for option in options:
237-
value = config_parser.get(section, option)
235+
options = config_parser.items(section)
236+
for option, value in options:
238237
if option == 'SAUCELABS_HUB_URL':
239238
saucelabs_user = os.environ['SAUCELABS_USER']
240239
saucelabs_key = os.environ['SAUCELABS_KEY']

0 commit comments

Comments
 (0)