bliss wrong exception message trying to decode some bytestrings
BLISS [1]: b'a'.decode()
Out [1]: 'a'
This is ok
BLISS [2]: b'\xa0'.decode()
Traceback (most recent call last):
File "/home/ppancino/miniconda3/envs/bliss3/lib/python3.7/site-packages/ptpython/repl.py", line 74, in _process_document
self._execute(cli, line)
File "/home/ppancino/bliss3/bliss/shell/cli/repl.py", line 74, in _execute
raise return_value[0](return_value[1]).with_traceback(return_value[2])
TypeError: function takes exactly 5 arguments (1 given)
function takes exactly 5 arguments (1 given)
This is not ok, should raise an UnicodeDecodeError as in python shell:
Python 3.7.0 (default, Oct 9 2018, 10:31:47)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> b'\xa0'.decode()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 0: invalid start byte