dispatch: ensure repr is bytes in _mayberepr

Fixes command line arguments containing spaces on Python 3.
This commit is contained in:
Augie Fackler 2017-03-19 00:22:04 -04:00
parent ecf3381175
commit 4eeee9b0e9

View File

@ -94,7 +94,7 @@ def _formatparse(write, inst):
def _mayberepr(a):
if ' ' in a:
return repr(a)
return encoding.strtolocal(repr(a))
return a
def _formatargs(args):