Changeset 56177
- Timestamp:
- 10/08/08 19:03:21 (3 months ago)
- Files:
-
- 1 modified
-
wxPython/3rdParty/Editra/src/syntax/syntax.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxPython/3rdParty/Editra/src/syntax/syntax.py
r55738 r56177 85 85 86 86 """ 87 if self.first:87 if SyntaxMgr.first: 88 88 object.__init__(self) 89 self.first = False89 SyntaxMgr.first = False 90 90 self._extreg = ExtensionRegister() 91 91 self._config = config … … 96 96 self._loaded = dict() 97 97 98 def __new__(cls, *args, **kargs):98 def __new__(cls, config=None): 99 99 """Ensure only a single instance is shared amongst 100 100 all objects. … … 102 102 103 103 """ 104 if not cls.instance:105 cls.instance = object.__new__(cls , *args, **kargs)104 if cls.instance is None: 105 cls.instance = object.__new__(cls) 106 106 return cls.instance 107 107
