Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c439c2

Browse filesBrowse files
committed
no-op cleanup of _get_cmds__setunset()
Code clarification
1 parent 36f607d commit 1c439c2
Copy full SHA for 1c439c2

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎gnuplotlib.py

Copy file name to clipboardExpand all lines: gnuplotlib.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.