Skip to content

Commit

Permalink
getargspec is gone in python 3.11
Browse files Browse the repository at this point in the history
so use getfullargspec on all 3.x versions instead.
  • Loading branch information
drougge authored and defnull committed Jun 13, 2022
1 parent ef7b678 commit 24ebf06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
from datetime import date as datedate, datetime, timedelta
from tempfile import TemporaryFile
from traceback import format_exc, print_exc
from inspect import getargspec
from unicodedata import normalize


Expand Down Expand Up @@ -93,6 +92,7 @@ def _e(): return sys.exc_info()[1]
import pickle
from io import BytesIO
from configparser import ConfigParser
from inspect import getfullargspec as getargspec
basestring = str
unicode = str
json_loads = lambda s: json_lds(touni(s))
Expand All @@ -110,6 +110,7 @@ def _raise(*a): raise a[0](a[1]).with_traceback(a[2])
from imp import new_module
from StringIO import StringIO as BytesIO
from ConfigParser import SafeConfigParser as ConfigParser
from inspect import getargspec
if py25:
msg = "Python 2.5 support may be dropped in future versions of Bottle."
warnings.warn(msg, DeprecationWarning)
Expand Down

0 comments on commit 24ebf06

Please sign in to comment.