[alacarte] util: Fix fillKeyFile



commit 1443592c3b1fb42014c80cdeff4de79794128bdf
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 10 23:55:58 2013 -0500

    util: Fix fillKeyFile
    
    basestring is-a Sequence, so it needs to take priority.

 Alacarte/util.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Alacarte/util.py b/Alacarte/util.py
index 50d836d..4414649 100644
--- a/Alacarte/util.py
+++ b/Alacarte/util.py
@@ -34,10 +34,10 @@ def fillKeyFile(keyfile, items):
 
         if isinstance(item, bool):
             keyfile.set_boolean(DESKTOP_GROUP, key, item)
-        elif isinstance(item, Sequence):
-            keyfile.set_string_list(DESKTOP_GROUP, key, item)
         elif isinstance(item, basestring):
             keyfile.set_string(DESKTOP_GROUP, key, item)
+        elif isinstance(item, Sequence):
+            keyfile.set_string_list(DESKTOP_GROUP, key, item)
 
 def getUniqueFileId(name, extension):
     append = 0



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