shlex.join is always available in 3.8+

This commit is contained in:
Anthony Sottile 2023-07-01 17:35:45 -04:00
parent dd97157e54
commit e432efb74b
1 changed files with 1 additions and 5 deletions

View File

@ -76,11 +76,7 @@ def main(argv: Sequence[str] | None = None) -> int:
for destroyed_link in destroyed_links:
print(f'- {destroyed_link}')
print('You should unstage affected files:')
print(
'\tgit reset HEAD -- {}'.format(
' '.join(shlex.quote(link) for link in destroyed_links),
),
)
print(f'\tgit reset HEAD -- {shlex.join(destroyed_links)}')
print(
'And retry commit. As a long term solution '
'you may try to explicitly tell git that your '