dschep / ntfy

🖥️📱🔔 A utility for sending notifications, on demand and when commands finish.

Home Page:http://ntfy.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support python3.11

pyhedgehog opened this issue · comments

In python3.11 inspect.getargspec removed at last (after deprecation in 3.0).
Proposed fix:

try:
    from inspect import getargspec
except ImportError:
    from inspect import getfullargspec
    def getargspec(f):
        return tuple(getfullargspec(f))[:4]

I was just wondering about the sort of error I was getting when running ntfy.
Now it makes sense, because I was using Python 3.11

I hope this is fixed in an upcoming release.