Skip to content

Commit 0baa8ce

Browse files
committed
Use out.stdout() in branch and publish
Replace one-off uses of regular print() with out.stdout(). Signed-off-by: Peter Grayson <[email protected]>
1 parent 2cbe1dd commit 0baa8ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stgit/commands/branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,4 @@ def func(parser, options, args):
445445
if len(args) != 0:
446446
parser.error('incorrect number of arguments')
447447

448-
print(crt_series.get_name())
448+
out.stdout(crt_series.get_name())

stgit/commands/publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def func(parser, options, args):
182182
published = set(__get_published(stack, public_tree))
183183
for p in stack.patchorder.applied:
184184
if p not in published:
185-
print(p)
185+
out.stdout(p)
186186
return
187187

188188
if options.overwrite:

0 commit comments

Comments
 (0)