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:
Stanislav Bolshakov 2020-06-26 13:57:19 +03:00 committed by prculley
parent 97a88be39f
commit d55775edd7
3 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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

View File

@ -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")