[oe-commits] [bitbake] 31/44: toaster: fix broken reference to urllib

git at git.openembedded.org git at git.openembedded.org
Mon Jun 13 21:11:19 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 1ed75c9bdb67a530a684f08d0cc0f1f9c66f1679
Author: Elliot Smith <elliot.smith at intel.com>
AuthorDate: Tue Jun 7 16:37:27 2016 +0100

    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.
    
    Signed-off-by: Elliot Smith <elliot.smith at intel.com>
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/toastergui/widgets.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py
index 4276c2a..005a562 100644
--- a/lib/toaster/toastergui/widgets.py
+++ b/lib/toaster/toastergui/widgets.py
@@ -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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list