From: daniel.sangorrin@toshiba.co.jp (Daniel Sangorrin)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [cip-kernel-sec][RESEND 5/6] pep8: fix pep8-related errors such as too long lines
Date: Wed, 10 Jul 2019 10:24:49 +0900 [thread overview]
Message-ID: <20190710012450.16524-6-daniel.sangorrin@toshiba.co.jp> (raw)
In-Reply-To: <20190710012450.16524-1-daniel.sangorrin@toshiba.co.jp>
These were distracting when checking new code.
Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
---
scripts/import_stable.py | 8 +++++---
scripts/kernel_sec/branch.py | 4 ++--
scripts/prepare_remotes.py | 2 +-
scripts/report_affected.py | 2 +-
scripts/webview.py | 2 +-
5 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/scripts/import_stable.py b/scripts/import_stable.py
index 194219d..b4d8e0a 100755
--- a/scripts/import_stable.py
+++ b/scripts/import_stable.py
@@ -64,7 +64,8 @@ def get_backports(git_repo, remotes, branches, debug=False):
backports.setdefault(mainline_commit, {})[branch_name] \
= stable_commit
if line.strip() != '':
- commit_re = BACKPORT_COMMIT_BOTTOM_RE # next line is not top
+ # next line is not top
+ commit_re = BACKPORT_COMMIT_BOTTOM_RE
return backports
@@ -120,7 +121,8 @@ def add_backports(branches, c_b_map, issue_commits, all_backports,
if debug_context:
print('%s/%s: recording commits' %
(debug_context, branch_name))
- issue_commits.setdefault(branch_name, []).extend(branch_commits)
+ issue_commits.setdefault(
+ branch_name, []).extend(branch_commits)
changed = True
else:
if debug_context:
@@ -169,7 +171,7 @@ if __name__ == '__main__':
metavar='DIRECTORY')
parser.add_argument('--remote-name',
dest='remote_name', action='append', default=[],
- help='git remote name mappings, e.g. stable:korg-stable',
+ help='git remote name mappings, e.g. stable:mystable',
metavar='NAME:OTHER-NAME')
parser.add_argument('--mainline-remote',
dest='mainline_remote_name',
diff --git a/scripts/kernel_sec/branch.py b/scripts/kernel_sec/branch.py
index 96f1cab..52f3b42 100644
--- a/scripts/kernel_sec/branch.py
+++ b/scripts/kernel_sec/branch.py
@@ -62,8 +62,8 @@ def _extract_live_stable_branches(doc):
if match:
version = match.group(1)
eol = match.group(2) is not None
- if branch_type not in ['mainline', 'stable', 'longterm', 'linux-next'] \
- or version is None:
+ if branch_type not in ['mainline', 'stable', 'longterm',
+ 'linux-next'] or version is None:
raise ValueError('failed to parse releases row text %r' % row_text)
# Filter out irrelevant branches
diff --git a/scripts/prepare_remotes.py b/scripts/prepare_remotes.py
index 59310fc..ab0db24 100755
--- a/scripts/prepare_remotes.py
+++ b/scripts/prepare_remotes.py
@@ -45,7 +45,7 @@ if __name__ == '__main__':
metavar='DIRECTORY')
parser.add_argument('--remote-name',
dest='remote_name', action='append', default=[],
- help='git remote name mappings, e.g. stable:korg-stable',
+ help='git remote name mappings, e.g. stable:mystable',
metavar='NAME:OTHER-NAME')
parser.add_argument('--mainline-remote',
dest='mainline_remote_name',
diff --git a/scripts/report_affected.py b/scripts/report_affected.py
index 7ec4af7..a97986c 100755
--- a/scripts/report_affected.py
+++ b/scripts/report_affected.py
@@ -143,7 +143,7 @@ if __name__ == '__main__':
metavar='DIRECTORY')
parser.add_argument('--remote-name',
dest='remote_name', action='append', default=[],
- help='git remote name mappings, e.g. stable:korg-stable',
+ help='git remote name mappings, e.g. stable:mystable',
metavar='NAME:OTHER-NAME')
parser.add_argument('--mainline-remote',
dest='mainline_remote_name',
diff --git a/scripts/webview.py b/scripts/webview.py
index 52a7b15..cf54948 100755
--- a/scripts/webview.py
+++ b/scripts/webview.py
@@ -205,7 +205,7 @@ if __name__ == '__main__':
metavar='DIRECTORY')
parser.add_argument('--remote-name',
dest='remote_name', action='append', default=[],
- help='git remote name mappings, e.g. stable:korg-stable',
+ help='git remote name mappings, e.g. stable:mystable',
metavar='NAME:OTHER-NAME')
parser.add_argument('--mainline-remote',
dest='mainline_remote_name',
--
2.17.1
next prev parent reply other threads:[~2019-07-10 1:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 1:24 [cip-dev] Add support for cip branches and tags Daniel Sangorrin
2019-07-10 1:24 ` [cip-dev] [cip-kernel-sec][RESEND 1/6] check_git_repo: add checks to the local repository Daniel Sangorrin
2019-07-10 1:24 ` [cip-dev] [cip-kernel-sec][RESEND 2/6] prepare_remotes: helper script to prepare local repo Daniel Sangorrin
2019-07-10 1:24 ` [cip-dev] [cip-kernel-sec][RESEND 3/6] report_affected: fix code when branches are specified Daniel Sangorrin
2019-07-10 1:24 ` [cip-dev] [cip-kernel-sec][RESEND 4/6] report_affected: add support for reporting on tags Daniel Sangorrin
2019-07-10 14:40 ` Ben Hutchings
2019-07-11 4:50 ` daniel.sangorrin at toshiba.co.jp
2019-07-10 1:24 ` Daniel Sangorrin [this message]
2019-07-10 1:24 ` [cip-dev] [cip-kernel-sec][RESEND 6/6] report_affected: add show-description option Daniel Sangorrin
2019-07-10 15:02 ` [cip-dev] Add support for cip branches and tags Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190710012450.16524-6-daniel.sangorrin@toshiba.co.jp \
--to=daniel.sangorrin@toshiba.co.jp \
--cc=cip-dev@lists.cip-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.