removing useless brackets
This commit is contained in:
parent
0b51437346
commit
b74b069153
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user