Create shlex.join if it doesnt exist

This commit is contained in:
Kovid Goyal 2022-01-07 20:17:23 +05:30
parent fcc75689d8
commit 8de787a2f3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -21,6 +21,10 @@ from .utils import expandvars, get_editor, log_error, resolved_shell
from .fast_data_types import get_options
if not hasattr(shlex, 'join'):
shlex.join = lambda a: ' '.join(map(shlex.quote, a))
class MatchCriteria(NamedTuple):
type: MatchType
value: str