dschep / ntfy

🖥️📱🔔 A utility for sending notifications, on demand and when commands finish.
http://ntfy.rtfd.io
GNU General Public License v3.0
4.83k stars 214 forks source link

Support python3.11 #257

Open pyhedgehog opened 1 year ago

pyhedgehog commented 1 year ago

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]
MurtadhaInit commented 1 year ago

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.