Ignore:
Timestamp:
03/27/12 20:59:05 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Children:
10674:ac200cc97b30, 10675:d820ffbd6b17, 10692:7c3700e1881e
Message:

Changed the warning type for obsolete attributes to DeprecationWarning (fixes #1157)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/cls_orange.cpp

    r10220 r10673  
    890890      char *transname = PyString_AsString(translation); 
    891891      sprintf(sbuf, "'%s' is an (obsolete) alias for '%s'", name, transname); 
    892       if (PyErr_Warn(PyExc_OrangeAttributeWarning, sbuf)) 
     892      if (PyErr_Warn(PyExc_DeprecationWarning, sbuf)) 
    893893        return -1; 
    894894         
Note: See TracChangeset for help on using the changeset viewer.