mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-28 00:38:52 +00:00
mangling no longer a thing
This commit is contained in:
parent
91490fc2d5
commit
680a5a0575
@ -86,7 +86,7 @@ class ParseOptionsTests(SyncTestCase):
|
|||||||
"""
|
"""
|
||||||
tricky = u"\u2621"
|
tricky = u"\u2621"
|
||||||
try:
|
try:
|
||||||
parse_options([unicode_to_argv(tricky, mangle=True)])
|
parse_options([unicode_to_argv(tricky)])
|
||||||
except usage.error as e:
|
except usage.error as e:
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
b"Unknown command: " + tricky.encode("utf-8"),
|
b"Unknown command: " + tricky.encode("utf-8"),
|
||||||
|
@ -126,7 +126,7 @@ def argv_to_abspath(s, **kwargs):
|
|||||||
return abspath_expanduser_unicode(decoded, **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.
|
Make the given unicode string suitable for use in an argv list.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user