Helpviewer/AdBlock/AdBlockRule.py

changeset 3656
441956d8fce5
parent 3178
f25fc1364c88
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import re 12 import re
13 13
14 from PyQt4.QtCore import Qt, QRegExp, QUrl, qVersion 14 from PyQt5.QtCore import Qt, QRegExp, QUrl, qVersion
15 from PyQt4.QtNetwork import QNetworkRequest 15 from PyQt5.QtNetwork import QNetworkRequest
16 16
17 17
18 # Qt version < 4.8 has an issue; it will wrongly 18 # Qt version < 4.8 has an issue; it will wrongly
19 # count .co.uk (and others) as second-level domains 19 # count .co.uk (and others) as second-level domains
20 def toSecondLevelDomain(url): 20 def toSecondLevelDomain(url):

eric ide

mercurial