Refactor code for readability and compatibility.
This commit is contained in:
parent
a09835049b
commit
c6d9c0619e
43 changed files with 129 additions and 112 deletions
|
|
@ -490,6 +490,7 @@ class CmdSetHandler(object):
|
|||
storage.remove(cset.path)
|
||||
updated = True
|
||||
except ValueError:
|
||||
# nothing to remove
|
||||
pass
|
||||
if updated:
|
||||
self.obj.cmdset_storage = storage
|
||||
|
|
@ -498,6 +499,7 @@ class CmdSetHandler(object):
|
|||
try:
|
||||
self.cmdset_stack.remove(cset)
|
||||
except ValueError:
|
||||
# nothing to remove
|
||||
pass
|
||||
# re-sync the cmdsethandler.
|
||||
self.update()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue