All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Jason Zaman <jason@perfinion.com>,
	selinux@tycho.nsa.gov, Steve Lawrence <slawrence@tresys.com>
Subject: Re: [GIT PULL] policycoreutils: fix PEP8 issues
Date: Wed, 22 Jul 2015 09:15:40 -0400	[thread overview]
Message-ID: <55AF977C.9020705@tycho.nsa.gov> (raw)
In-Reply-To: <20150717142834.GA20679@meriadoc.Home>

On 07/17/2015 10:28 AM, Jason Zaman wrote:
> The following changes since commit 2202a68d5ac2ac4c8fe05cdea829435efd2ba8e6:
> 
>   Updated sepolgen ChangeLog. (2015-07-16 13:11:14 -0400)
> 
> are available in the git repository at:
> 
>   https://github.com/perfinion/selinux.git reformat
> 
> for you to fetch changes up to 78c977e34c85ff97e236434d90ee9be5ed8ce1d0:
> 
>   policycoreutils: Fix PEP8 issues (2015-07-17 17:55:28 +0400)
> 
> Commit message:
> 
>     policycoreutils: Fix PEP8 issues
> 
>     When trying to get policycoreutils working in python3, I kept running
>     into TabErrors:
> 
>         Traceback (most recent call last):
>           File "/usr/lib/python-exec/python3.3/semanage", line 27, in <module>
>             import seobject
>           File "/usr/lib64/python3.3/site-packages/seobject.py", line 154
>             context = "%s%s" % (filler, raw)
>                                            ^
>         TabError: inconsistent use of tabs and spaces in indentation
> 
>     Python3 is a lot stricter than python2 regarding whitespace and looks like
>     previous commits mixed the two.  When fixing this, I took the chance to fix
>     other PEP8 style issues at the same time.
> 
>     This commit was made using:
>     $ file $(find . -type f) | grep -i python > pyfiles
>     $ autopep8 --in-place --ignore=E501,E265 $(cat pyfiles)
> 
>     The ignore E501 is long lines since there are many that would be wrapped
>     otherwise, and E265 is block comments that start with ## instead of just #.

If this was generated entirely via autopep8, I'd prefer to take this
other patch series first:
http://marc.info/?l=selinux&m=143743932419386&w=2
as it will be easier to redo the autopep8 on top than the other way around.

> 
> ---- ------------------------------------------------------------
> Jason Zaman (1):
>       policycoreutils: Fix PEP8 issues
> 
>  policycoreutils/audit2allow/audit2allow           |  112 ++--
>  policycoreutils/audit2allow/audit2why             |  104 ++--
>  policycoreutils/audit2allow/sepolgen-ifgen        |   14 +-
>  policycoreutils/audit2allow/test_audit2allow.py   |   15 +-
>  policycoreutils/gui/booleansPage.py               |   69 ++-
>  policycoreutils/gui/domainsPage.py                |   24 +-
>  policycoreutils/gui/fcontextPage.py               |   83 +--
>  policycoreutils/gui/html_util.py                  |   19 +-
>  policycoreutils/gui/loginsPage.py                 |   45 +-
>  policycoreutils/gui/mappingsPage.py               |    6 +-
>  policycoreutils/gui/modulesPage.py                |   33 +-
>  policycoreutils/gui/polgengui.py                  |  201 +++----
>  policycoreutils/gui/portsPage.py                  |   48 +-
>  policycoreutils/gui/semanagePage.py               |   29 +-
>  policycoreutils/gui/statusPage.py                 |   40 +-
>  policycoreutils/gui/system-config-selinux.py      |   33 +-
>  policycoreutils/gui/usersPage.py                  |   30 +-
>  policycoreutils/mcstrans/share/util/mlscolor-test |   18 +-
>  policycoreutils/mcstrans/share/util/mlstrans-test |   27 +-
>  policycoreutils/sandbox/sandbox                   |  592 +++++++++---------
>  policycoreutils/sandbox/start                     |    8 +-
>  policycoreutils/sandbox/test_sandbox.py           |   27 +-
>  policycoreutils/scripts/chcat                     |  129 ++--
>  policycoreutils/semanage/semanage                 |  238 +++++---
>  policycoreutils/semanage/seobject.py              | 4316 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------
>  policycoreutils/semanage/test-semanage.py         |  291 ++++-----
>  policycoreutils/sepolicy/selinux_client.py        |   19 +-
>  policycoreutils/sepolicy/selinux_server.py        |   29 +-
>  policycoreutils/sepolicy/sepolicy.py              |  220 ++++---
>  policycoreutils/sepolicy/sepolicy/__init__.py     |  487 ++++++++-------
>  policycoreutils/sepolicy/sepolicy/booleans.py     |   19 +-
>  policycoreutils/sepolicy/sepolicy/communicate.py  |   21 +-
>  policycoreutils/sepolicy/sepolicy/generate.py     | 2168 +++++++++++++++++++++++++++++++++---------------------------------
>  policycoreutils/sepolicy/sepolicy/gui.py          |  527 ++++++++--------
>  policycoreutils/sepolicy/sepolicy/interface.py    |   49 +-
>  policycoreutils/sepolicy/sepolicy/manpage.py      | 1174 ++++++++++++++++++------------------
>  policycoreutils/sepolicy/sepolicy/network.py      |   33 +-
>  policycoreutils/sepolicy/sepolicy/sedbus.py       |   30 +-
>  policycoreutils/sepolicy/sepolicy/transition.py   |   35 +-
>  policycoreutils/sepolicy/setup.py                 |    8 +-
>  policycoreutils/sepolicy/test_sepolicy.py         |   39 +-
>  41 files changed, 5907 insertions(+), 5502 deletions(-)
> 
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
> 
> 

  reply	other threads:[~2015-07-22 13:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-17 14:28 [GIT PULL] policycoreutils: fix PEP8 issues Jason Zaman
2015-07-22 13:15 ` Stephen Smalley [this message]
2015-07-22 14:31   ` Jason Zaman
2015-07-22 14:38     ` Stephen Smalley
2015-07-23  7:14       ` Petr Lautrbach
2015-07-24  7:43         ` Petr Lautrbach
2015-07-24  8:13           ` Jason Zaman
2015-07-24  8:35             ` Jason Zaman
2015-07-24 13:09               ` Stephen Smalley
2015-07-24 13:06             ` Stephen Smalley

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=55AF977C.9020705@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=jason@perfinion.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=slawrence@tresys.com \
    /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.