argv_type on Windows can be either

This commit is contained in:
Jason R. Coombs 2021-03-06 16:06:24 -05:00
parent c673726139
commit ee99c610b3

View File

@ -145,7 +145,7 @@ def unicode_to_argv(s, mangle=False):
# According to unicode_to_argv above, the expected type for
# cli args depends on the platform, so capture that expectation.
argv_type = future_str if sys.platform == "win32" else native_str
argv_type = (future_str, native_str) if sys.platform == "win32" else native_str
"""
The expected type for args to a subprocess
"""