summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Drougge <bearded@longhaired.org>2022-06-10 22:27:19 +0200
committerMarcel Hellkamp <marc@gsites.de>2022-06-13 06:26:22 +0200
commit24ebf06a174f995176413f671a709008b19a8fd5 (patch)
tree90b97133e1562eef045f0db1ebf26e6ff7091d58
parentef7b678bda31b9d5c3f7f4cffcdcf14137b4cdad (diff)
downloadbottle-24ebf06a174f995176413f671a709008b19a8fd5.tar.gz
getargspec is gone in python 3.11
so use getfullargspec on all 3.x versions instead.
-rw-r--r--bottle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index ed3076c..fb3384c 100644
--- a/bottle.py
+++ b/bottle.py
@@ -41,7 +41,6 @@ import base64, cgi, email.utils, functools, hmac, itertools, mimetypes,\
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
@@ -93,6 +92,7 @@ if py3k:
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))
@@ -110,6 +110,7 @@ else: # 2.x
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)