mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-22 04:18:23 +00:00
unicode_to_argv == id on win32
This commit is contained in:
parent
183ee10035
commit
e3a805caa7
@ -129,10 +129,12 @@ def unicode_to_argv(s, mangle=False):
|
||||
"""
|
||||
Make the given unicode string suitable for use in an argv list.
|
||||
|
||||
On Python 2, this encodes using UTF-8. On Python 3, this returns the
|
||||
input unmodified.
|
||||
On Python 2 on POSIX, this encodes using UTF-8. On Python 3 and on
|
||||
Windows, this returns the input unmodified.
|
||||
"""
|
||||
precondition(isinstance(s, unicode), s)
|
||||
if sys.platform == "win32":
|
||||
return s
|
||||
return ensure_str(s)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user