[gnome-continuous-yocto/gnomeostree-3.28-rocko: 908/8267] bitbake: toaster: fix broken reference to urllib



commit 6eefd9c1e509ca29397421d5f6e0199dc5b2d384
Author: Elliot Smith <elliot smith intel com>
Date:   Tue Jun 7 16:37:27 2016 +0100

    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>

 bitbake/lib/toaster/toastergui/widgets.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py
index 4276c2a..005a562 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]