Skip to content

Commit b85d196

Browse files
committed
refactor some comments
1 parent c9049cc commit b85d196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nebula/core/eventmanager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)