mangling no longer a thing

This commit is contained in:
Jean-Paul Calderone 2021-02-12 14:26:08 -05:00
parent 91490fc2d5
commit 680a5a0575
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class ParseOptionsTests(SyncTestCase):
"""
tricky = u"\u2621"
try:
parse_options([unicode_to_argv(tricky, mangle=True)])
parse_options([unicode_to_argv(tricky)])
except usage.error as e:
self.assertEqual(
b"Unknown command: " + tricky.encode("utf-8"),

View File

@ -126,7 +126,7 @@ def argv_to_abspath(s, **kwargs):
return abspath_expanduser_unicode(decoded, **kwargs)
def unicode_to_argv(s, mangle=False):
def unicode_to_argv(s):
"""
Make the given unicode string suitable for use in an argv list.