[alacarte/wip/muktupavels/python3] util: replace basestring with str



commit 9c04cd9576ebd65d52178fb08153f920e4b3ee06
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Aug 30 18:18:38 2019 +0300

    util: replace basestring with str

 Alacarte/util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Alacarte/util.py b/Alacarte/util.py
index 0d98d56..acbde8f 100644
--- a/Alacarte/util.py
+++ b/Alacarte/util.py
@@ -34,7 +34,7 @@ def fillKeyFile(keyfile, items):
 
         if isinstance(item, bool):
             keyfile.set_boolean(DESKTOP_GROUP, key, item)
-        elif isinstance(item, basestring):
+        elif isinstance(item, str):
             keyfile.set_string(DESKTOP_GROUP, key, item)
         elif isinstance(item, Sequence):
             keyfile.set_string_list(DESKTOP_GROUP, key, item)


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