Skip to content

Commit 1c439c2

Browse files
committed
no-op cleanup of _get_cmds__setunset()
Code clarification
1 parent 36f607d commit 1c439c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gnuplotlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,8 @@ def _split_dict(d, *keysets):
12811281
def _get_cmds__setunset(cmds,options):
12821282
for setunset in ('set', 'unset'):
12831283
if setunset in options:
1284-
cmds += [ setunset + ' ' + setting for setting in options[setunset] ]
1284+
for setunset,thing in options.items():
1285+
cmds.append(f"{setunset} {thing}")
12851286

12861287
def _massageProcessOptionsAndGetCmds(processOptions):
12871288
r'''Compute commands to set the given process options, and massage the input, as

0 commit comments

Comments
 (0)