chore: Replace usage of deprecated inspect.getargspec (#436)

This commit is contained in:
Aron Bierbaum 2022-09-09 03:01:45 -05:00 committed by GitHub
parent bbd2a47bae
commit 784a9a134a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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
@ -79,6 +78,7 @@ except IOError:
# Lots of stdlib and builtin differences.
if py3k:
import http.client as httplib
from inspect import getfullargspec as getargspec
import _thread as thread
from urllib.parse import urljoin, SplitResult as UrlSplitResult
from urllib.parse import urlencode, quote as urlquote, unquote as urlunquote
@ -101,6 +101,7 @@ if py3k:
def _raise(*a): raise a[0](a[1]).with_traceback(a[2])
else: # 2.x
import httplib
from inspect import getargspec
import thread
from urlparse import urljoin, SplitResult as UrlSplitResult
from urllib import urlencode, quote as urlquote, unquote as urlunquote