mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +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):
|
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):
|
if isinstance(s, unicode):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
precondition(isinstance(s, bytes), s)
|
precondition(isinstance(s, bytes), s)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user