eric6/SqlBrowser/SqlBrowser.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/SqlBrowser/SqlBrowser.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/SqlBrowser/SqlBrowser.py	Tue Mar 02 17:17:09 2021 +0100
@@ -61,7 +61,7 @@
         self.__warnings = []
         
         for connection in connections:
-            url = QUrl(connection, QUrl.TolerantMode)
+            url = QUrl(connection, QUrl.ParsingMode.TolerantMode)
             if not url.isValid():
                 self.__warnings.append(
                     self.tr("Invalid URL: {0}").format(connection))
@@ -70,7 +70,7 @@
             err = self.__browser.addConnection(url.scheme(), url.path(),
                                                url.userName(), url.password(),
                                                url.host(), url.port(-1))
-            if err.type() != QSqlError.NoError:
+            if err.type() != QSqlError.ErrorType.NoError:
                 self.__warnings.append(
                     self.tr("Unable to open connection: {0}".format(
                         err.text())))

eric ide

mercurial