Fix recently introduced TabError's
PATCH 1/1 Fix recently introduced TabError's
Commits a3d2c7a 6a7a5aa introduced inconsistent use of tabs and spaces in indentation what makes python3.6 unhappy.
--- libsemanage/utils/semanage_migrate_store | 4 ++-- python/semanage/seobject.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
libsemanage/utils/semanage_migrate_store +2 -2
@@ -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)
python/semanage/seobject.py +3 -3
@@ -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)
Signature · 1 line
2.13.0
Quoted 3 lines · Petr Lautrbach
Commits a3d2c7a 6a7a5aa introduced inconsistent use of tabs and spaces in indentation what makes python3.6 unhappy.
There's another python3 problem with using "print ". I'll resend another patch which will it together with use of tabs and spaces.
Quoted 50 lines
Signed-off-by Petr Lautrbach <[email protected]>--- libsemanage/utils/semanage_migrate_store | 4 ++-- python/semanage/seobject.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)libsemanage/utils/semanage_migrate_store +2
-2@@ -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)python/semanage/seobject.py +3
-3@@ -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)Signature · 1 line
2.13.0
Stephen Smalley
AppliedQuoted 3 lines · Petr Lautrbach
Commits a3d2c7a 6a7a5aa introduced inconsistent use of tabs and spaces
in indentation what makes python3.6 unhappy.
Thanks, applied, and also fixed up print statements -> functions.
Quoted 50 lines
Signed-off-by Petr Lautrbach <[email protected]>---
libsemanage/utils/semanage_migrate_store | 4 ++-- python/semanage/seobject.py | 6 +++---2 files changed, 5 insertions(+), 5 deletions(-)libsemanage/utils/semanage_migrate_store +2
-2@@ -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)python/semanage/seobject.py +0
-0@@ -1321,10 +1321,10 @@ class ibpkeyRecords(semanageRecords): semanageRecords.__init__(self, store)
def__genkey(self, pkey, subnet_prefix):python/semanage/seobject.py +1
-1- if subnet_prefix == "": + if subnet_prefix == "":raise
ValueError(_("Subnet Prefix is required"))python/semanage/seobject.py +1
-1- pkeys = pkey.split("-") + pkeys = pkey.split("-")if len(pkeys) == 1:
high = low =int(pkeys[0], 0)
else:python/semanage/seobject.py +0
-0@@ -1576,7 +1576,7 @@ class ibendportRecords(semanageRecords): semanageRecords.__init__(self, store)
def__genkey(self, ibendport, ibdev_name):python/semanage/seobject.py +1
-1- if ibdev_name == "": + if ibdev_name == "":raise
ValueError(_("IB device name is required"))
port = int(ibendport)
Quoted 6 lines · Stephen Smalley
Quoted 3 lines · Petr Lautrbach
Commits a3d2c7a 6a7a5aa introduced inconsistent use of tabs and spaces
in indentation what makes python3.6 unhappy.Thanks, applied, and also fixed up print statements -> functions.
Great thanks. In this case please ignore my previous email.
Quoted 51 lines
Quoted 51 lines
Signed-off-by Petr Lautrbach <[email protected]>---
libsemanage/utils/semanage_migrate_store | 4 ++-- python/semanage/seobject.py | 6 +++---2 files changed, 5 insertions(+), 5 deletions(-)libsemanage/utils/semanage_migrate_store +2
-2@@ -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)python/semanage/seobject.py +0
-0@@ -1321,10 +1321,10 @@ class ibpkeyRecords(semanageRecords): semanageRecords.__init__(self, store)
def__genkey(self, pkey, subnet_prefix):python/semanage/seobject.py +1
-1- if subnet_prefix == "": + if subnet_prefix == "":raise
ValueError(_("Subnet Prefix is required"))python/semanage/seobject.py +1
-1- pkeys = pkey.split("-") + pkeys = pkey.split("-")if len(pkeys) == 1:
high = low =int(pkeys[0], 0)
else:python/semanage/seobject.py +0
-0@@ -1576,7 +1576,7 @@ class ibendportRecords(semanageRecords): semanageRecords.__init__(self, store)
def__genkey(self, ibendport, ibdev_name):python/semanage/seobject.py +1
-1- if ibdev_name == "": + if ibdev_name == "":raise
ValueError(_("IB device name is required"))
port = int(ibendport)