mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-18 19:30:47 +00:00
policycoreutils: semanage: remove useless empty lines
This patch just removes some blank lines that we don't need. Makes it all purdy. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
1654b964bc
commit
f97e508567
@ -39,7 +39,6 @@ except IOError:
|
||||
__builtin__.__dict__['_'] = unicode
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
manageditems=[ "boolean", "login", "user", "port", "interface", "node", "fcontext"]
|
||||
action = False
|
||||
def set_action(option):
|
||||
@ -269,6 +268,7 @@ Object-specific Options (see above):
|
||||
if o == "-d" or o == "--delete":
|
||||
set_action(o)
|
||||
delete = True
|
||||
|
||||
if o == "-D" or o == "--deleteall":
|
||||
set_action(o)
|
||||
deleteall = True
|
||||
@ -339,6 +339,7 @@ Object-specific Options (see above):
|
||||
|
||||
if o == "--on" or o == "-1":
|
||||
value = "on"
|
||||
|
||||
if o == "--off" or o == "-0":
|
||||
value = "off"
|
||||
|
||||
@ -363,7 +364,6 @@ Object-specific Options (see above):
|
||||
if object == "boolean":
|
||||
OBJECT = seobject.booleanRecords(store)
|
||||
|
||||
|
||||
if object == "module":
|
||||
OBJECT = seobject.moduleRecords(store)
|
||||
|
||||
@ -381,7 +381,6 @@ Object-specific Options (see above):
|
||||
OBJECT.deleteall()
|
||||
return
|
||||
|
||||
|
||||
if extract:
|
||||
for i in OBJECT.customized():
|
||||
print "%s %s" % (object, str(i))
|
||||
@ -487,7 +486,6 @@ Object-specific Options (see above):
|
||||
|
||||
else:
|
||||
OBJECT.delete(target)
|
||||
|
||||
return
|
||||
|
||||
raise ValueError(_("Invalid command: semanage %s") % " ".join(argv))
|
||||
|
Loading…
Reference in New Issue
Block a user