Fixed compatibility with Python 2.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 01 Sep 2021 09:55:02 +0300
changeset 1313 db3f92fe3295
parent 1312 ca3d1dd847f3
child 1314 3bd48b5e12c6
Fixed compatibility with Python 2.
py/gadict.py
--- a/py/gadict.py	Wed Aug 25 12:30:00 2021 +0300
+++ b/py/gadict.py	Wed Sep 01 09:55:02 2021 +0300
@@ -109,7 +109,7 @@
             self.col_list = [col]
 
     def set_countable(self, countable):
-        if isinstance(countable, str):
+        if isinstance(countable, str) or isinstance(countable, unicode):
             if countable == 'yes':
                 self.countable = True
             elif countable == 'no':