Skip to content

Commit

Permalink
Bug fixes?
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Sep 16, 2020
1 parent e730991 commit b47a7be
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
Binary file added dist/libpymath-0.1.12.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion libpymath.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: libpymath
Version: 0.1.11
Version: 0.1.12
Summary: A general purpose Python math module
Home-page: https://www.github.com/pencilcaseman/gpc
Author: Toby Davis
Expand Down
27 changes: 0 additions & 27 deletions libpymath/LibPyMathModules/error/errorModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,6 @@ static PyObject *errorRaiseFileExistsError(PyObject *self, PyObject *args) {
return NULL;
}

static PyObject *errorRaiseFileNotFoundError(PyObject *self, PyObject *args) {
const char *txt;
if (!PyArg_ParseTuple(args, "s", &txt))
return NULL;
PyErr_SetString(PyExc_FileNotFoundError, txt);
return NULL;
}

static PyObject *errorRaiseFloatingPointError(PyObject *self, PyObject *args) {
const char *txt;
if (!PyArg_ParseTuple(args, "s", &txt))
Expand Down Expand Up @@ -291,14 +283,6 @@ static PyObject *errorRaiseMemoryError(PyObject *self, PyObject *args) {
return NULL;
}

static PyObject *errorRaiseModuleNotFoundError(PyObject *self, PyObject *args) {
const char *txt;
if (!PyArg_ParseTuple(args, "s", &txt))
return NULL;
PyErr_SetString(PyExc_ModuleNotFoundError, txt);
return NULL;
}

static PyObject *errorRaiseNameError(PyObject *self, PyObject *args) {
const char *txt;
if (!PyArg_ParseTuple(args, "s", &txt))
Expand Down Expand Up @@ -547,14 +531,6 @@ static PyObject *errorRaiseWarning(PyObject *self, PyObject *args) {
return NULL;
}

static PyObject *errorRaiseWindowsError(PyObject *self, PyObject *args) {
const char *txt;
if (!PyArg_ParseTuple(args, "s", &txt))
return NULL;
PyErr_SetString(PyExc_WindowsError, txt);
return NULL;
}

// **************************************************************************************************************************** //
// ==================================================== Module Definitions ==================================================== //
// **************************************************************************************************************************** //
Expand All @@ -578,7 +554,6 @@ static PyMethodDef errorFunctionMethods[] = {
{"raiseEnvironmentError", (PyCFunction) errorRaiseEnvironmentError, METH_VARARGS, "Raise an EnvironmentError"},
{"raiseException", (PyCFunction) errorRaiseException, METH_VARARGS, "Raise an Exception"},
{"raiseFileExistsError", (PyCFunction) errorRaiseFileExistsError, METH_VARARGS, "Raise a FileExistsError"},
{"raiseFileNotFoundError", (PyCFunction) errorRaiseFileNotFoundError, METH_VARARGS, "Raise a FileNotFoundError"},
{"raiseFloatingPointError", (PyCFunction) errorRaiseFloatingPointError, METH_VARARGS, "Raise a FloatingPointError"},
{"raiseFutureWarning", (PyCFunction) errorRaiseFutureWarning, METH_VARARGS, "Raise a FutureWarning"},
{"raiseGeneratorExit", (PyCFunction) errorRaiseGeneratorExit, METH_VARARGS, "Raise a GeneratorExit"},
Expand All @@ -593,7 +568,6 @@ static PyMethodDef errorFunctionMethods[] = {
{"raiseKeyboardInterrupt", (PyCFunction) errorRaiseKeyboardInterrupt, METH_VARARGS, "Raise a KeyboardInterrupt"},
{"raiseLookupError", (PyCFunction) errorRaiseLookupError, METH_VARARGS, "Raise a LookupError"},
{"raiseMemoryError", (PyCFunction) errorRaiseMemoryError, METH_VARARGS, "Raise a MemoryError"},
{"raiseModuleNotFoundError", (PyCFunction) errorRaiseModuleNotFoundError, METH_VARARGS, "Raise a ModuleNotFoundError"},
{"raiseNameError", (PyCFunction) errorRaiseNameError, METH_VARARGS, "Raise a NameError"},
{"raiseNotADirectoryError", (PyCFunction) errorRaiseNotADirectoryError, METH_VARARGS, "Raise a NotADirectoryError"},
{"raiseNotImplementedError", (PyCFunction) errorRaiseNotImplementedError, METH_VARARGS, "Raise a NotImplementedError"},
Expand Down Expand Up @@ -625,7 +599,6 @@ static PyMethodDef errorFunctionMethods[] = {
{"raiseUserWarning", (PyCFunction) errorRaiseUserWarning, METH_VARARGS, "Raise an UserWarning"},
{"raiseValueError", (PyCFunction) errorRaiseValueError, METH_VARARGS, "Raise a ValueError"},
{"raiseWarning", (PyCFunction) errorRaiseWarning, METH_VARARGS, "Raise a Warning"},
{"raiseWindowsError", (PyCFunction) errorRaiseWindowsError, METH_VARARGS, "Raise a WindowsError"},
{NULL}
};

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def Wall():

setup(
name="libpymath",
version="0.1.11",
version="0.1.12",
description="A general purpose Python math module",
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit b47a7be

Please sign in to comment.