diff options
author | Carl Drougge <bearded@longhaired.org> | 2022-06-10 22:27:19 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2022-06-13 06:26:22 +0200 |
commit | 24ebf06a174f995176413f671a709008b19a8fd5 (patch) | |
tree | 90b97133e1562eef045f0db1ebf26e6ff7091d58 | |
parent | ef7b678bda31b9d5c3f7f4cffcdcf14137b4cdad (diff) | |
download | bottle-24ebf06a174f995176413f671a709008b19a8fd5.tar.gz |
getargspec is gone in python 3.11
so use getfullargspec on all 3.x versions instead.
-rw-r--r-- | bottle.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |