Changeset 56178

Show
Ignore:
Timestamp:
10/08/08 19:10:37 (6 weeks ago)
Author:
CJP
Message:

Fix some more init and new deprecation warnings for python 2.6

Location:
wxPython/3rdParty/Editra/src
Files:
2 modified

Legend:

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

    r55443 r56178  
    149149 
    150150        """ 
    151         plugin.Plugin.__init__(self, mgr) 
     151        plugin.Plugin.__init__(self) 
    152152 
    153153        # Attributes 
     
    513513 
    514514        """ 
    515         plugin.Plugin.__init__(self, plgmgr) 
     515        plugin.Plugin.__init__(self) 
    516516 
    517517        # Attributes 
     
    774774 
    775775        """ 
    776         plugin.Plugin.__init__(self, mgr) 
     776        plugin.Plugin.__init__(self) 
    777777 
    778778        # Attributes 
  • wxPython/3rdParty/Editra/src/plugin.py

    r56042 r56178  
    179179        return 'EdPlugin' 
    180180 
    181     def __new__(cls, *args, **kwargs): 
     181    def __new__(cls, pluginmgr): 
    182182        """Only one instance of each plugin is allowed to exist 
    183183        per manager. If an instance of this plugin has already be 
    184184        initialized, that instance will be returned. If not this will 
    185185        initialize a new instance of the plugin. 
     186        @keyword mgr: Plugin Manager instance 
    186187        @return: a new class object or an existing instance if one 
    187188                 exists. 
     
    194195            return self 
    195196 
    196         pluginmgr = args[0] 
    197197        self = pluginmgr.GetPlugins().get(cls) 
    198198        if self is None: