Mercurial > public > mercurial-scm > hg-stable
diff mercurial/posix.py @ 51875:454feddab720
brancing: merge stable into default
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 06 Sep 2024 02:12:19 +0200 |
parents | 1888846a1ee2 0f62ea8a9be8 |
children | f4733654f144 |
line wrap: on
line diff
--- a/mercurial/posix.py Wed Aug 28 23:25:26 2024 +0200 +++ b/mercurial/posix.py Fri Sep 06 02:12:19 2024 +0200 @@ -23,6 +23,7 @@ from typing import ( Any, AnyStr, + Callable, Iterable, Iterator, List, @@ -552,7 +553,7 @@ return False -_needsshellquote: Optional[Match[bytes]] = None +_needsshellquote: Optional[Callable[[bytes], Optional[Match[bytes]]]] = None def shellquote(s: bytes) -> bytes: