eric7/EricNetwork/EricTldExtractor.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8354
12ebd3934fef
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
16 import os 16 import os
17 import re 17 import re
18 18
19 from PyQt6.QtCore import QObject, QUrl, QFile, QFileInfo, qWarning 19 from PyQt6.QtCore import QObject, QUrl, QFile, QFileInfo, qWarning
20 20
21 from E5Gui import E5MessageBox 21 from E5Gui import EricMessageBox
22 22
23 23
24 class EricTldHostParts: 24 class EricTldHostParts:
25 """ 25 """
26 Class implementing the host parts helper. 26 Class implementing the host parts helper.
282 if not parsedDataFileExist: 282 if not parsedDataFileExist:
283 tldDataFileDownloadLink = ( 283 tldDataFileDownloadLink = (
284 "http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/" 284 "http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/"
285 "effective_tld_names.dat?raw=1" 285 "effective_tld_names.dat?raw=1"
286 ) 286 )
287 E5MessageBox.information( 287 EricMessageBox.information(
288 None, 288 None,
289 self.tr("TLD Data File not found"), 289 self.tr("TLD Data File not found"),
290 self.tr("""<p>The file 'effective_tld_names.dat' was not""" 290 self.tr("""<p>The file 'effective_tld_names.dat' was not"""
291 """ found!<br/>You can download it from """ 291 """ found!<br/>You can download it from """
292 """'<a href="{0}"><b>here</b></a>' to one of the""" 292 """'<a href="{0}"><b>here</b></a>' to one of the"""
462 if not testDataFileExist: 462 if not testDataFileExist:
463 testFileDownloadLink = ( 463 testFileDownloadLink = (
464 "http://mxr.mozilla.org/mozilla-central/source/netwerk/test/" 464 "http://mxr.mozilla.org/mozilla-central/source/netwerk/test/"
465 "unit/data/test_psl.txt?raw=1" 465 "unit/data/test_psl.txt?raw=1"
466 ) 466 )
467 E5MessageBox.information( 467 EricMessageBox.information(
468 None, 468 None,
469 self.tr("TLD Data File not found"), 469 self.tr("TLD Data File not found"),
470 self.tr("""<p>The file 'test_psl.txt' was not found!""" 470 self.tr("""<p>The file 'test_psl.txt' was not found!"""
471 """<br/>You can download it from '<a href="{0}">""" 471 """<br/>You can download it from '<a href="{0}">"""
472 """<b>here</b></a>' to one of the following""" 472 """<b>here</b></a>' to one of the following"""

eric ide

mercurial