File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ class EventManager:
1313 _lock = Locker ("event_manager" )
1414
1515 def __new__ (cls , * args , ** kwargs ):
16- """Implementación del patrón Singleton. """
16+ """Singleton implementation """
1717 with cls ._lock :
1818 if cls ._instance is None :
1919 cls ._instance = super ().__new__ (cls )
2020 cls ._instance ._initialize (* args , ** kwargs )
2121 return cls ._instance
2222
2323 def _initialize (self , verbose = False ):
24- """Inicializa la instancia única (solo se ejecuta una vez). """
24+ """Single initialization """
2525 if hasattr (self , "_initialized" ):
2626 return
2727 self ._subscribers : dict [tuple [str , str ], list ] = {}
@@ -37,7 +37,7 @@ def _initialize(self, verbose=False):
3737
3838 @staticmethod
3939 def get_instance (verbose = False ):
40- """Método estático para obtener la instancia única. """
40+ """Static method to obtain EventManager instance """
4141 if EventManager ._instance is None :
4242 EventManager (verbose = verbose )
4343 return EventManager ._instance
You can’t perform that action at this time.
0 commit comments