may as well leave(/restore) this

This commit is contained in:
Jean-Paul Calderone 2021-01-12 14:56:37 -05:00
parent 622d67c9b9
commit 522f96b150
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ def unicode_to_argv(s, mangle=False):
Windows, this returns the input unmodified. Windows, this returns the input unmodified.
""" """
precondition(isinstance(s, unicode), s) precondition(isinstance(s, unicode), s)
if PY3:
warnings.warn("This will be unnecessary once Python 2 is dropped.",
DeprecationWarning)
if sys.platform == "win32": if sys.platform == "win32":
return s return s
return ensure_str(s) return ensure_str(s)