72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek Jakub Hrozek <jhrozek@redhat.com>
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek Copyright (C) 2011 Red Hat
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek This program is free software; you can redistribute it and/or modify
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek it under the terms of the GNU General Public License as published by
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek the Free Software Foundation; either version 3 of the License, or
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek (at your option) any later version.
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek This program is distributed in the hope that it will be useful,
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek GNU General Public License for more details.
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek You should have received a copy of the GNU General Public License
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozeksss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict)
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek return PyErr_NewExceptionWithDoc(name, doc, base, dict);
72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067Jakub Hrozek PyObject *mydict = NULL; /* points to the dict only if we create it */