[New-bugs-announce] [issue29305] encoding to ascii in client.py

Babe Hardy report at bugs.python.org
Wed Jan 18 03:41:01 EST 2017

New submission from Babe Hardy:

used urlopen('...{}'.format(v)).read() with v being a string
when v is of a non-ascii format:
>>UnicodeEncodeError: 'ascii' codec can't encode characters<<
in line 984 of putrequest

after changing

my script worked again

components: Library (Lib)
messages: 285707
nosy: Babe Hardy
priority: normal
severity: normal
status: open
title: encoding to ascii in client.py
type: compile error
versions: Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list