mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-manager: Avoid a deprecation warning on f20
This commit is contained in:
parent
a2e5206730
commit
476ecf7fee
@ -37,6 +37,11 @@ from virtinst import cli as virtinstcli
|
||||
from virtcli import cliutils, cliconfig
|
||||
|
||||
|
||||
try:
|
||||
# Avoid a deprecation warning about threads_init
|
||||
import gi
|
||||
gi.check_version("3.9.1")
|
||||
except (ValueError, AttributeError):
|
||||
GObject.threads_init()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user