﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28679	urlencode does not decode bytes before passing them to Python's urlencode	François Freitag	François Freitag	"{{{urlencode}}} should decode bytes objects before to pass them to python's urlencode. Instead, it's currently calling str on the bytes, passing the {{{bytes.__str__}}} representation of the bytes (b'...') to urlencode.

{{{#!python
# A dictionary with bytes value
result = http.urlencode({'a': b'abc'}, doseq=True)
self.assertEqual(result, 'a=abc')
# Test result on 2.0a1
AssertionError: 'a=b%27abc%27' != 'a=abc' 
}}}"	Bug	closed	Utilities	2.0	Release blocker	fixed	urlencode bytes		Accepted	1	0	0	0	0	0
