diff shrink

This commit is contained in:
Jean-Paul Calderone 2021-01-12 14:21:32 -05:00
parent 46d3ffb2e2
commit 99f00818a8

View File

@ -98,10 +98,13 @@ def get_io_encoding():
def argv_to_unicode(s):
"""
Perform the inverse of ``unicode_to_argv``.
Decode given argv element to unicode. If this fails, raise a UsageError.
This is the inverse of ``unicode_to_argv``.
"""
if isinstance(s, unicode):
return s
precondition(isinstance(s, bytes), s)
try: