[sos-devel] [PATCH] [last] Fix pep8 issue
Bryn M. Reeves
bmr at redhat.com
Fri Jul 10 12:03:42 UTC 2015
On Fri, Jul 10, 2015 at 05:28:28PM +0530, Kamalesh Babulal wrote:
> Fix E126 continuation line over-indented for hanging indent
> pep8 issue.
>
> Signed-off-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
> ---
> sos/plugins/last.py | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/sos/plugins/last.py b/sos/plugins/last.py
> index d6b791d..27ba1d3 100644
> --- a/sos/plugins/last.py
> +++ b/sos/plugins/last.py
> @@ -25,9 +25,9 @@ class Last(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
> def setup(self):
> self.add_cmd_output("last", root_symlink="last")
> self.add_cmd_output([
> - "last reboot",
> - "last shutdown",
> - "lastlog"
> - ])
> + "last reboot",
> + "last shutdown",
> + "lastlog"
> + ])
To comply with the sos house style for lists this should be:
self.add_cmd_output([
- "last reboot",
- "last shutdown",
- "lastlog"
- ])
+ "last reboot",
+ "last shutdown",
+ "lastlog"
+ ])
But that said, I don't see this warning evern running pep8.py from
git:
$ cd ~/src/git/pep8/
$ git pull
Already up-to-date.
$ git describe HEAD
1.1-533-ga6e423c
$ cd -
$ ~/src/git/pep8/pep8.py sos
$
Which is a bit odd; what pep8 are you running?
Either way - the style is wrong in that file and it should be fixed.
Regards,
Bryn.
More information about the sos-devel
mailing list