Fix recently introduced TabError's

Commits a3d2c7a 6a7a5aa introduced inconsistent use of tabs and spaces
in indentation what makes python3.6 unhappy.

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
Petr Lautrbach 2017-05-26 16:09:51 +02:00 committed by Stephen Smalley
parent 914691cc2a
commit 5b61d8fba8
2 changed files with 5 additions and 5 deletions

View File

@ -254,8 +254,8 @@ if __name__ == "__main__":
"policy.kern",
"file_contexts",
"homedir_template",
"pkeys.local",
"ibendports.local"]
"pkeys.local",
"ibendports.local"]
create_dir(newroot_path(), 0o755)

View File

@ -1321,10 +1321,10 @@ class ibpkeyRecords(semanageRecords):
semanageRecords.__init__(self, store)
def __genkey(self, pkey, subnet_prefix):
if subnet_prefix == "":
if subnet_prefix == "":
raise ValueError(_("Subnet Prefix is required"))
pkeys = pkey.split("-")
pkeys = pkey.split("-")
if len(pkeys) == 1:
high = low = int(pkeys[0], 0)
else:
@ -1576,7 +1576,7 @@ class ibendportRecords(semanageRecords):
semanageRecords.__init__(self, store)
def __genkey(self, ibendport, ibdev_name):
if ibdev_name == "":
if ibdev_name == "":
raise ValueError(_("IB device name is required"))
port = int(ibendport)