contrib/python-zstandard/c-ext/decompressobj.c
changeset 30924 c32454d69b85
parent 30444 b86a448a2965
child 31799 e0dc40530c5a
equal deleted inserted replaced
30923:5b60464efbde 30924:c32454d69b85
    39 		PyErr_SetString(ZstdError, "cannot use a decompressobj multiple times");
    39 		PyErr_SetString(ZstdError, "cannot use a decompressobj multiple times");
    40 		return NULL;
    40 		return NULL;
    41 	}
    41 	}
    42 
    42 
    43 #if PY_MAJOR_VERSION >= 3
    43 #if PY_MAJOR_VERSION >= 3
    44 	if (!PyArg_ParseTuple(args, "y#",
    44 	if (!PyArg_ParseTuple(args, "y#:decompress",
    45 #else
    45 #else
    46 	if (!PyArg_ParseTuple(args, "s#",
    46 	if (!PyArg_ParseTuple(args, "s#:decompress",
    47 #endif
    47 #endif
    48 		&source, &sourceSize)) {
    48 		&source, &sourceSize)) {
    49 		return NULL;
    49 		return NULL;
    50 	}
    50 	}
    51 
    51