Commit e4baa24d by Guba Sándor

rename get_virtio_device

parent 555e93a1
...@@ -455,7 +455,7 @@ class SerialLineReceiver(SerialLineReceiverBase): ...@@ -455,7 +455,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
pass pass
def get_virtio_device(): def _get_virtio_device():
path = None path = None
GUID = '{6FDE7521-1B65-48ae-B628-80BE62016026}' GUID = '{6FDE7521-1B65-48ae-B628-80BE62016026}'
from infi.devicemanager import DeviceManager from infi.devicemanager import DeviceManager
...@@ -474,7 +474,7 @@ def get_virtio_device(): ...@@ -474,7 +474,7 @@ def get_virtio_device():
def main(): def main():
if system == 'Windows': if system == 'Windows':
port = get_virtio_device() port = _get_virtio_device()
if port: if port:
from w32serial import SerialPort from w32serial import SerialPort
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment