Changeset 7677:fe0083c2c764 in orange


Ignore:
Timestamp:
02/15/11 13:14:26 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
8b52ae5da0ecdafbda50e03d110644f26d1390db
Message:

Variable_set_name return 0 instead of PYNULL on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_kernel.cpp

    r7665 r7677  
    306306int Variable_set_name(PyObject *self, PyObject *name) 
    307307{  
    308    char *varName; 
    309    if (!PyString_Check(name)) 
    310        PYERROR(PyExc_AttributeError, "string expected", PYNULL); 
     308    char *varName; 
     309    if (!PyString_Check(name)) 
     310        PYERROR(PyExc_AttributeError, "string expected", 0); 
    311311    varName = PyString_AsString(name); 
    312312    PVariable var = PyOrange_AsVariable(self); 
Note: See TracChangeset for help on using the changeset viewer.