connect: Fix urllib usage on py3

This commit is contained in:
Cole Robinson 2018-01-27 14:33:31 -05:00
parent 3086c7fda9
commit b8e2952a9c

View File

@ -22,7 +22,7 @@ import glob
import os
import logging
import socket
import urllib
import urllib.parse
from gi.repository import Gio
from gi.repository import GObject
@ -409,7 +409,7 @@ class vmmConnect(vmmGObjectUI):
addrstr = ""
if user:
addrstr += urllib.quote(user) + "@"
addrstr += urllib.parse.quote(user) + "@"
if host.count(":") > 1:
host = "[%s]" % host