Pluginmanager: fix Pytho3 syntaksis
1. Run python3 -m unittest discover -p 'date*test.py' from https://gramps-project.org/wiki/index.php/Date_Handler#Calendars 2. See errors, 3. Fix this errors.
This commit is contained in:
parent
97a88be39f
commit
d55775edd7
@ -83,7 +83,7 @@ class BasePluginManager:
|
||||
|
||||
def __init__(self):
|
||||
""" This function should only be run once by get_instance() """
|
||||
if BasePluginManager.__instance is not 1:
|
||||
if BasePluginManager.__instance != 1:
|
||||
raise Exception("This class is a singleton. "
|
||||
"Use the get_instance() method")
|
||||
|
||||
|
@ -1135,7 +1135,7 @@ class PluginRegister:
|
||||
|
||||
def __init__(self):
|
||||
""" This function should only be run once by get_instance() """
|
||||
if PluginRegister.__instance is not 1:
|
||||
if PluginRegister.__instance != 1:
|
||||
raise Exception("This class is a singleton. "
|
||||
"Use the get_instance() method")
|
||||
self.stable_only = True
|
||||
|
@ -71,7 +71,7 @@ class GuiPluginManager(Callback):
|
||||
|
||||
def __init__(self):
|
||||
""" This function should only be run once by get_instance() """
|
||||
if GuiPluginManager.__instance is not 1:
|
||||
if GuiPluginManager.__instance != 1:
|
||||
raise Exception("This class is a singleton. "
|
||||
"Use the get_instance() method")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user