##// END OF EJS Templates
Vendor shutil.get_terminal_size....
Vendor shutil.get_terminal_size. Use the vendored version only if import error. That should fix import error for many users. Closes #9815. This is only against the 5.x branch as this is in the stdlib on Python 3

File last commit:

r21663:e3427ad0
r23688:e50d8111
Show More
signatures.py
11 lines | 332 B | text/x-python | PythonLexer
"""Function signature objects for callables.
Use the standard library version if available, as it is more up to date.
Fallback on backport otherwise.
"""
try:
from inspect import BoundArguments, Parameter, Signature, signature
except ImportError:
from ._signatures import BoundArguments, Parameter, Signature, signature