Skip to content

Commit

Permalink
update to latest helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
lekma committed Mar 15, 2023
1 parent 9139210 commit 12b733e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# pkg
pkg_name = "mood.event"
pkg_version = "1.5.1"
pkg_version = "1.6.0"
pkg_desc = "Python libev interface"

PKG_VERSION = ("PKG_VERSION", "\"{0}\"".format(pkg_version))
Expand Down Expand Up @@ -85,7 +85,7 @@ def libev_version():
keywords="libev event",

setup_requires = ["setuptools>=24.2.0"],
python_requires="~=3.8",
python_requires="~=3.10",
packages=find_packages(),
namespace_packages=["mood"],
zip_safe=False,
Expand Down Expand Up @@ -122,7 +122,7 @@ def libev_version():
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython"
]
)
Expand Down
5 changes: 3 additions & 2 deletions src/Loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ __Loop_FullStop(ev_loop *loop)
static inline int
__Loop_Fatal(PyObject *context)
{
PyObject *exc_type, *exc_value, *exc_traceback;
PyObject *exc_type, *exc_value, *exc_traceback, *tmp;
_Py_IDENTIFIER(__err_fatal__);
int fatal = 0;

PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
fatal = (_PyObject_HasAttrId(context, &PyId___err_fatal__) != 0);
fatal = (_PyObject_LookupAttrId(context, &PyId___err_fatal__, &tmp) != 0);
_PyErr_ChainExceptions(exc_type, exc_value, exc_traceback);
Py_XDECREF(tmp);
return fatal;
}

Expand Down
2 changes: 1 addition & 1 deletion src/helpers
Submodule helpers updated 1 files
+1 −0 helpers.h

0 comments on commit 12b733e

Please sign in to comment.