Ignore:
Timestamp:
Aug 3, 2008 11:35:39 PM (16 years ago)
Author:
dkearney
Message:

fixing python encode/decode function documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/python/Rappture/PyRpEncode.cc

    r962 r1088  
    9393"decode(data,flags)\n\
    9494\n\
    95 Encode the provided data with gzip compression and base64 \n\
     95Decode the provided data with gzip compression and base64 \n\
    9696according to the provided flags");
    9797
     
    110110
    111111    if (PyTuple_Size(args) != 2) {
    112         PyErr_SetString(PyExc_TypeError,"encode() takes exactly 2 arguments");
     112        PyErr_SetString(PyExc_TypeError,"decode() takes exactly 2 arguments");
    113113        return NULL;
    114114    }
     
    116116    if (!PyArg_ParseTupleAndKeywords(args, keywds, "s#i",
    117117            kwlist, &data, &dlen, &flags)) {
    118         PyErr_SetString(PyExc_TypeError,"encode() takes exactly 2 arguments");
     118        PyErr_SetString(PyExc_TypeError,"decode() takes exactly 2 arguments");
    119119        return NULL;
    120120    }
Note: See TracChangeset for help on using the changeset viewer.