Change to use super() instead of the old py2 style everywhere
This commit is contained in:
parent
55237f20a7
commit
5859de7054
33 changed files with 69 additions and 70 deletions
|
|
@ -2661,7 +2661,7 @@ class OLCMenu(EvMenu):
|
|||
Format the node text itself.
|
||||
|
||||
"""
|
||||
return super(OLCMenu, self).nodetext_formatter(nodetext)
|
||||
return super().nodetext_formatter(nodetext)
|
||||
|
||||
def options_formatter(self, optionlist):
|
||||
"""
|
||||
|
|
@ -2697,7 +2697,7 @@ class OLCMenu(EvMenu):
|
|||
if olc_options
|
||||
else ""
|
||||
)
|
||||
other_options = super(OLCMenu, self).options_formatter(other_options)
|
||||
other_options = super().options_formatter(other_options)
|
||||
sep = "\n\n" if olc_options and other_options else ""
|
||||
|
||||
return "{}{}{}".format(olc_options, sep, other_options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue