mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
only decode input_ results on python 2
This commit is contained in:
parent
159e24a14b
commit
bdbed1f6d9
1 changed files with 4 additions and 1 deletions
|
|
@ -214,7 +214,10 @@ def input_(prompt=None):
|
|||
except EOFError:
|
||||
raise UserError(u'stdin stream ended while input required')
|
||||
|
||||
return resp.decode(_in_encoding(), 'ignore')
|
||||
if six.PY2:
|
||||
return resp.decode(_in_encoding(), 'ignore')
|
||||
else:
|
||||
return resp
|
||||
|
||||
|
||||
def input_options(options, require=False, prompt=None, fallback_prompt=None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue