Changeset 10521:51b7f0b1ea41 in orange


Ignore:
Timestamp:
03/14/12 12:55:12 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
545feb79e31386e77ca5d87d962598dbc8bb2612
Message:

Orange.misc._orangenew c can now handle the object base type without warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/misc/__init__.py

    r10327 r10521  
    911911    @wraps(base.__new__) 
    912912    def _orange__new_wrapped(cls, data=None, **kwargs): 
    913         self = base.__new__(cls, **kwargs) 
     913        if base == object: 
     914            self = base.__new__(cls) 
     915        else: 
     916            self = base.__new__(cls, **kwargs) 
     917 
    914918        if data: 
    915919            self.__init__(**kwargs) 
Note: See TracChangeset for help on using the changeset viewer.