Skip to content

Commit 774e1e9

Browse files
committed
Use generator properly
1 parent 41b8588 commit 774e1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/try_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
conf = State(get_options(), []).conf
1616

17-
tox_section = [section for section in tox_ini.sections()][0]
17+
tox_section = next(tox_ini.sections())
1818

1919
core_config_set = (
2020
CoreConfigSet(conf, tox_section, tox_ini_path.parent, tox_ini_path)

0 commit comments

Comments
 (0)