mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Remove all relative imports
We also drop VirtualDevice from the 'public' virtinst API, since there are better ways to get its info.
This commit is contained in:
@@ -25,7 +25,7 @@ from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
|
||||
import virtinst
|
||||
from virtinst import (VirtualCharDevice, VirtualDevice,
|
||||
from virtinst import (VirtualCharDevice,
|
||||
VirtualVideoDevice, VirtualWatchdog,
|
||||
VirtualFilesystem, VirtualSmartCardDevice,
|
||||
VirtualRedirDevice)
|
||||
@@ -976,10 +976,10 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
label = row[5]
|
||||
|
||||
if label == "parallel":
|
||||
return VirtualDevice.VIRTUAL_DEV_PARALLEL
|
||||
return VirtualCharDevice.VIRTUAL_DEV_PARALLEL
|
||||
elif label == "channel":
|
||||
return VirtualDevice.VIRTUAL_DEV_CHANNEL
|
||||
return VirtualDevice.VIRTUAL_DEV_SERIAL
|
||||
return VirtualCharDevice.VIRTUAL_DEV_CHANNEL
|
||||
return VirtualCharDevice.VIRTUAL_DEV_SERIAL
|
||||
|
||||
def dev_to_title(self, page):
|
||||
if page == PAGE_ERROR:
|
||||
|
||||
Reference in New Issue
Block a user