Skip to content

Commit f7a5c51

Browse files
committed
Trivial: remove some locals in pop.py
Signed-off-by: Peter Grayson <[email protected]>
1 parent 7816d6b commit f7a5c51

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

stgit/commands/pop.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ def func(parser, options, args):
102102
parser.error('Can only spill topmost applied patches')
103103
iw = None # don't touch index+worktree
104104

105-
applied = [p for p in trans.applied if p not in set(patches)]
106-
unapplied = patches + trans.unapplied
107105
try:
108-
trans.reorder_patches(applied, unapplied, iw=iw,
109-
allow_interactive=True)
106+
trans.reorder_patches(
107+
applied=[p for p in trans.applied if p not in patches],
108+
unapplied=patches + trans.unapplied,
109+
iw=iw,
110+
allow_interactive=True,
111+
)
110112
except transaction.TransactionException:
111113
pass
112114
return trans.run(iw)

0 commit comments

Comments
 (0)