bitbake: toaster: fix broken reference to urllib

The code previously imported urllib to make use of querystring
quoting, but was modified to support Python 3. During this
process, the reference to urllib was not fixed, which resulted
in table filters breaking.

Remove the reference to urllib (which is no longer imported)
and instead reference the imported unquote_plus() function.

(Bitbake rev: f66ee686d4e3002a4a38a7424bcc605a6df9db0b)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Elliot Smith
2016-06-07 16:37:27 +01:00
committed by Richard Purdie
parent 79a3954afc
commit 6eefd9c1e5

View File

@@ -219,7 +219,7 @@ class ToasterTable(TemplateView):
try:
filter_name, action_name = filters.split(':')
action_params = urllib.unquote_plus(filter_value)
action_params = unquote_plus(filter_value)
except ValueError:
return