REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.71 KB
Close
//opt/cloudlinux/venv/lib/python3.11/site-packages/wrapt/arguments.py
Text
Base64
# The inspect.formatargspec() function was dropped in Python 3.11 but we need # need it for when constructing signature changing decorators based on result of # inspect.getargspec() or inspect.getfullargspec(). The code here implements # inspect.formatargspec() base on Parameter and Signature from inspect module, # which were added in Python 3.6. Thanks to Cyril Jouve for the implementation. try: from inspect import Parameter, Signature except ImportError: from inspect import formatargspec else: def formatargspec(args, varargs=None, varkw=None, defaults=None, kwonlyargs=(), kwonlydefaults={}, annotations={}): if kwonlydefaults is None: kwonlydefaults = {} ndefaults = len(defaults) if defaults else 0 parameters = [ Parameter( arg, Parameter.POSITIONAL_OR_KEYWORD, default=defaults[i] if i >= 0 else Parameter.empty, annotation=annotations.get(arg, Parameter.empty), ) for i, arg in enumerate(args, ndefaults - len(args)) ] if varargs: parameters.append(Parameter(varargs, Parameter.VAR_POSITIONAL)) parameters.extend( Parameter( kwonlyarg, Parameter.KEYWORD_ONLY, default=kwonlydefaults.get(kwonlyarg, Parameter.empty), annotation=annotations.get(kwonlyarg, Parameter.empty), ) for kwonlyarg in kwonlyargs ) if varkw: parameters.append(Parameter(varkw, Parameter.VAR_KEYWORD)) return_annotation = annotations.get('return', Signature.empty) return str(Signature(parameters, return_annotation=return_annotation))
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2026-02-06 08:01:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
arguments.py
1.71 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
decorators.py
20.83 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
importer.py
10.53 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
wrappers.py
35.31 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_wrappers.cpython-311-x86_64-linux-gnu.so
63.88 KB
lrwxr-xr-x
2026-01-20 13:18:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
1.17 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).