Do not call qurl() from is_about_url()
This commit is contained in:
parent
2ed3f722f5
commit
bcb24e3ebf
@ -71,8 +71,9 @@ def version():
|
|||||||
|
|
||||||
def is_about_url(url):
|
def is_about_url(url):
|
||||||
"""Return True if url is an about:... or other special URL."""
|
"""Return True if url is an about:... or other special URL."""
|
||||||
url = qurl(url)
|
if isinstance(url, QUrl):
|
||||||
return url.toString().replace('http://', '').startswith('about:')
|
url = url.toString()
|
||||||
|
return url.replace('http://', '').startswith('about:')
|
||||||
|
|
||||||
|
|
||||||
def _git_str():
|
def _git_str():
|
||||||
|
Loading…
Reference in New Issue
Block a user