1
0
forked from VimPlug/jedi

Remove inspect.Parameter compatibility

This commit is contained in:
Dave Halter
2020-07-02 00:44:25 +02:00
parent 4c557d4050
commit 395f7fc59e
11 changed files with 15 additions and 21 deletions

View File

@@ -426,17 +426,6 @@ def highest_pickle_protocol(python_versions):
return protocol
try:
from inspect import Parameter
except ImportError:
class Parameter(object):
POSITIONAL_ONLY = object()
POSITIONAL_OR_KEYWORD = object()
VAR_POSITIONAL = object()
KEYWORD_ONLY = object()
VAR_KEYWORD = object()
class GeneralizedPopen(subprocess.Popen):
def __init__(self, *args, **kwargs):
if os.name == 'nt':