Ignore:
Timestamp:
02/06/12 23:05:15 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Remove arguments from object.new calls. It gives a deprecation warning and has no effects: the arguments get passed anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/orng/orngRegression.py

    r9671 r9878  
    1111class LinearRegressionLearner(object): 
    1212    def __new__(self, data=None, name='linear regression', **kwds): 
    13         learner = object.__new__(self, **kwds) 
     13        learner = object.__new__(self) 
    1414        if data: 
    1515            learner.__init__(name,**kwds) # force init 
     
    236236    """PLSRegressionLearner(data, y, x=None, nc=None)""" 
    237237    def __new__(self, data=None, **kwds): 
    238         learner = object.__new__(self, **kwds) 
     238        learner = object.__new__(self) 
    239239        if data: 
    240240            learner.__init__(**kwds) # force init 
Note: See TracChangeset for help on using the changeset viewer.