removing useless brackets

This commit is contained in:
Jesko 2018-08-10 19:14:48 +02:00
parent 0b51437346
commit b74b069153

View File

@ -182,7 +182,7 @@ class UrlPattern:
if parsed.netloc.startswith('['):
# Using QUrl parsing to minimize ipv6 addresses
url = QUrl()
url.setHost("[" + parsed.hostname + "]")
url.setHost(parsed.hostname)
if not url.isValid():
raise ParseError(url.errorString())
self._host = url.host()