Skip to content

Commit c061ec1

Browse files
topher200jpgrayson
authored andcommitted
Use 'rstrip' over 'strip'; remove TODO
1 parent e9c8e34 commit c061ec1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stgit/commands/squash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# TODO (not this file): add 'verbose=1' support to 'stg new', similar to 'git commit'
21
from stgit import argparse, utils
32
from stgit.argparse import opt, patch_range
43
from stgit.commands.common import (
@@ -90,7 +89,7 @@ def _squash_patches(trans, patches, name, msg, save_template, no_verify=False):
9089
num,
9190
pn,
9291
)
93-
msg += "\n%s\n\n" % trans.patches[pn].data.message_str.strip()
92+
msg += "\n%s\n\n" % trans.patches[pn].data.message_str.rstrip()
9493
msg += (
9594
"# Please enter the commit message for your patch. Lines starting\n"
9695
"# with '#' will be ignored."

0 commit comments

Comments
 (0)