eric6/E5Network/E5TldExtractor.py

changeset 7253
50dbe65a1334
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/E5Network/E5TldExtractor.py	Sat Sep 21 15:37:43 2019 +0200
+++ b/eric6/E5Network/E5TldExtractor.py	Sat Sep 21 16:04:17 2019 +0200
@@ -273,16 +273,18 @@
         parsedDataFileExist = False
         
         for path in self.__dataSearchPaths:
-            dataFileName = QFileInfo(path + "/effective_tld_names.dat")\
-                .absoluteFilePath()
+            dataFileName = (
+                QFileInfo(path + "/effective_tld_names.dat").absoluteFilePath()
+            )
             if QFileInfo(dataFileName).exists():
                 parsedDataFileExist = True
                 break
         
         if not parsedDataFileExist:
-            tldDataFileDownloadLink = \
-                "http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/" \
+            tldDataFileDownloadLink = (
+                "http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/"
                 "effective_tld_names.dat?raw=1"
+            )
             E5MessageBox.information(
                 None,
                 self.tr("TLD Data File not found"),
@@ -336,8 +338,10 @@
                 if "===END PRIVATE DOMAINS===" in line:
                     seekToEndOfPrivateDomains = False
                 
-                if not loadPrivateDomains and \
-                        "===BEGIN PRIVATE DOMAINS===" in line:
+                if (
+                    not loadPrivateDomains and
+                    "===BEGIN PRIVATE DOMAINS===" in line
+                ):
                     seekToEndOfPrivateDomains = True
                 
                 continue
@@ -449,16 +453,18 @@
         testDataFileExist = False
         
         for path in self.__dataSearchPaths:
-            testDataFileName = QFileInfo(path + "/test_psl.txt")\
-                .absoluteFilePath()
+            testDataFileName = (
+                QFileInfo(path + "/test_psl.txt").absoluteFilePath()
+            )
             if QFileInfo(testDataFileName).exists():
                 testDataFileExist = True
                 break
         
         if not testDataFileExist:
-            testFileDownloadLink = \
-                "http://mxr.mozilla.org/mozilla-central/source/netwerk/test/" \
+            testFileDownloadLink = (
+                "http://mxr.mozilla.org/mozilla-central/source/netwerk/test/"
                 "unit/data/test_psl.txt?raw=1"
+            )
             E5MessageBox.information(
                 None,
                 self.tr("TLD Data File not found"),

eric ide

mercurial