Changeset 56177

Show
Ignore:
Timestamp:
10/08/08 19:03:21 (3 months ago)
Author:
CJP
Message:

Fix some deprecation warnings for python2.6

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxPython/3rdParty/Editra/src/syntax/syntax.py

    r55738 r56177  
    8585 
    8686        """ 
    87         if self.first: 
     87        if SyntaxMgr.first: 
    8888            object.__init__(self) 
    89             self.first = False 
     89            SyntaxMgr.first = False 
    9090            self._extreg = ExtensionRegister() 
    9191            self._config = config 
     
    9696            self._loaded = dict() 
    9797 
    98     def __new__(cls, *args, **kargs): 
     98    def __new__(cls, config=None): 
    9999        """Ensure only a single instance is shared amongst 
    100100        all objects. 
     
    102102 
    103103        """ 
    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) 
    106106        return cls.instance 
    107107