Preferences: fixed an issue testing for 'str' instead of 'basestring'.

Tue, 30 Oct 2018 19:20:46 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 30 Oct 2018 19:20:46 +0100
changeset 6563
57db1fb596c8
parent 6562
375a82cba3b6
child 6564
cd5853703e8e

Preferences: fixed an issue testing for 'str' instead of 'basestring'.

Preferences/__init__.py file | annotate | diff | comparison | revisions
--- a/Preferences/__init__.py	Sat Oct 27 12:00:46 2018 +0200
+++ b/Preferences/__init__.py	Tue Oct 30 19:20:46 2018 +0100
@@ -2970,7 +2970,7 @@
             download["Downloaded"] = prefClass.settings.value("Downloaded")
             if download["Downloaded"] is None:
                 download["Downloaded"] = QDateTime()
-            elif isinstance(download["Downloaded"], str):
+            elif isinstance(download["Downloaded"], basestring):
                 download["Downloaded"] = QDateTime.fromString(
                     download["Downloaded"], "yyyy-MM-dd hh:mm:ss")
             downloads.append(download)

eric ide

mercurial