mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 03:36:25 +00:00
diff shrink
This commit is contained in:
parent
46d3ffb2e2
commit
99f00818a8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user