mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-14 01:57:44 +03:00
connect: Fix urllib usage on py3
This commit is contained in:
parent
3086c7fda9
commit
b8e2952a9c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user