Changeset 795 for trunk/python/Rappture


Ignore:
Timestamp:
Aug 3, 2007 5:10:40 AM (17 years ago)
Author:
dkearney
Message:

updated python bindings to not complain about giving an empty value sting to the put() fxn.
removing the old python version of simsim.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/Rappture/PyRpLibrary.cc

    r791 r795  
    581581    else if (valueStrObj != NULL) {
    582582
    583         PyString_AsStringAndSize(valueStrObj, &value_char, &value_len);
    584         if (value_len < 1) {
    585             /* user passed in empty value string */
    586             // should the user be able to pass an empty string in?
    587             PyErr_SetString(PyExc_ValueError, "put()'s \'value\' arg is empty");
     583        if (PyString_AsStringAndSize(valueStrObj, &value_char, &value_len) == -1) {
     584            // user passed in an improper string
     585            // exception raised within fxn
    588586            return NULL;
    589587        }
Note: See TracChangeset for help on using the changeset viewer.