Add missing utils module
This commit is contained in:
parent
801bfcaab5
commit
1e636eaba2
8
qutebrowser/utils/__init__.py
Normal file
8
qutebrowser/utils/__init__.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from PyQt5.QtCore import QUrl
|
||||||
|
|
||||||
|
def qurl(url):
|
||||||
|
if isinstance(url, QUrl):
|
||||||
|
return url
|
||||||
|
if not url.startswith('http://'):
|
||||||
|
url = 'http://' + url
|
||||||
|
return QUrl(url)
|
Loading…
Reference in New Issue
Block a user