From c040ec62e11b5140e52ee0f59f9fc70a94b5ac5d Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Wed, 7 Apr 2004 03:00:43 +0000 Subject: *** empty log message *** --- python/utils.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'python/utils.c') diff --git a/python/utils.c b/python/utils.c index 3ea4d171..763c41e1 100644 --- a/python/utils.c +++ b/python/utils.c @@ -1,9 +1,9 @@ /* $Id$ * - * PyXMLSec - Python bindings for XML Security library (XMLSec) + * PyLasso - Python bindings for Lasso library * - * Copyright (C) 2003-2004 Easter-eggs, Valery Febvre - * http://pyxmlsec.labs.libre-entreprise.org + * Copyright (C) 2004 Entr'ouvert + * http://lasso.labs.libre-entreprise.org * * Author: Valery Febvre * @@ -44,7 +44,7 @@ int CheckArgs(PyObject *args, char *format) { if (format[i] == 'O' || format[i] == 'o') { if (!PyInstance_Check(obj)) { if (format[i] == 'o' && obj == Py_None) continue; - PyErr_Format(xmlsec_error, + PyErr_Format(lasso_error, "%s() argument %d must be an instance.", format + nb_args, i+1); return 0; @@ -54,7 +54,7 @@ int CheckArgs(PyObject *args, char *format) { else if (format[i] == 'C' || format[i] == 'c') { if (!PyCallable_Check(obj)) { if (format[i] == 'c' && obj == Py_None) continue; - PyErr_Format(xmlsec_error, + PyErr_Format(lasso_error, "%s() argument %d must be callable.", format + nb_args, i+1); return 0; @@ -64,7 +64,7 @@ int CheckArgs(PyObject *args, char *format) { else if (format[i] == 'S' || format[i] == 's') { if (!PyString_Check(obj)) { if (format[i] == 's' && obj == Py_None) continue; - PyErr_Format(xmlsec_error, + PyErr_Format(lasso_error, "%s() argument %d must be a string.", format + nb_args, i+1); return 0; @@ -74,7 +74,7 @@ int CheckArgs(PyObject *args, char *format) { else if (format[i] == 'I' || format[i] == 'i') { if (!PyInt_Check(obj)) { if (format[i] == 'i' && obj == Py_None) continue; - PyErr_Format(xmlsec_error, + PyErr_Format(lasso_error, "%s() argument %d must be an integer.", format + nb_args, i+1); return 0; @@ -84,7 +84,7 @@ int CheckArgs(PyObject *args, char *format) { else if (format[i] == 'F' || format[i] == 'f') { if (!PyFile_Check(obj)) { if (format[i] == 'f' && obj == Py_None) continue; - PyErr_Format(xmlsec_error, + PyErr_Format(lasso_error, "%s() argument %d must be a file.", format + nb_args, i+1); return 0; -- cgit