Add missing utils module

This commit is contained in:
Florian Bruhin 2014-01-27 23:19:03 +01:00
parent 801bfcaab5
commit 1e636eaba2

View 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)