Commit 1443592c authored by Jasper St. Pierre's avatar Jasper St. Pierre

util: Fix fillKeyFile

basestring is-a Sequence, so it needs to take priority.
parent 23f03180
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment