mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
dispatch: ensure repr is bytes in _mayberepr
Fixes command line arguments containing spaces on Python 3.
This commit is contained in:
parent
ecf3381175
commit
4eeee9b0e9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user