diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2024-02-26 15:51:29 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2024-02-26 15:51:29 -0500 |
commit | 7f3284906e67f138eae82271a6c3bde1ebb30791 (patch) | |
tree | dfa74cc1d16119fdf6d39c98a61c54ec252e6aa9 | |
parent | f240dab2b85c05cb14374f6a1c51fb9c2783e889 (diff) | |
download | b4-7f3284906e67f138eae82271a6c3bde1ebb30791.tar.gz |
ez: cosmetic changes to appease PEP8
Small tweaks to make warnings go away in my linter.
Fixes: 6b2642dd71e7a ("ez: allow inserting a range-diff in the cover-letter")
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | src/b4/ez.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/b4/ez.py b/src/b4/ez.py index 11f4cb2..1cd35f4 100644 --- a/src/b4/ez.py +++ b/src/b4/ez.py @@ -2072,7 +2072,7 @@ def force_revision(forceto: int) -> None: store_cover(cover, tracking) -def compare(compareto: str, execvp: bool = True) -> Union[List[str], None]: +def compare(compareto: str, execvp: bool = True) -> Union[str, None]: cover, tracking = load_cover() # Try the new format first tagname, revision = get_sent_tagname(tracking['series']['change-id'], SENT_TAG_PREFIX, compareto) @@ -2103,7 +2103,7 @@ def compare(compareto: str, execvp: bool = True) -> Union[List[str], None]: curr_end = lines[0] grdcmd = ['git', 'range-diff', '%.12s..%.12s' % (prev_start, prev_end), '%.12s..%.12s' % (curr_start, curr_end)] logger.debug('Running %s', ' '.join(grdcmd)) - if (execvp): + if execvp: # We exec range-diff and let it take over os.execvp(grdcmd[0], grdcmd) else: @@ -2114,6 +2114,7 @@ def compare(compareto: str, execvp: bool = True) -> Union[List[str], None]: else: return out + def auto_to_cc() -> None: tocmdstr = None cccmdstr = None |