mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
refactor: ruff autofixes
This commit is contained in:
455 files changed
+12322
-14762
No files matched your search
@@ -20,7 +20,6 @@ Base interface for NIOs.
|
||||
|
||||
|
||||
class NIO:
|
||||
|
||||
"""
|
||||
IOU NIO.
|
||||
"""
|
||||
|
||||
@@ -22,7 +22,6 @@ from .nio import NIO
|
||||
|
||||
|
||||
class NIOEthernet(NIO):
|
||||
|
||||
"""
|
||||
Generic Ethernet NIO.
|
||||
|
||||
@@ -50,7 +49,4 @@ class NIOEthernet(NIO):
|
||||
|
||||
def asdict(self):
|
||||
|
||||
return {
|
||||
"type": "nio_ethernet",
|
||||
"ethernet_device": self._ethernet_device
|
||||
}
|
||||
return {"type": "nio_ethernet", "ethernet_device": self._ethernet_device}
|
||||
@@ -22,7 +22,6 @@ from .nio import NIO
|
||||
|
||||
|
||||
class NIOTAP(NIO):
|
||||
|
||||
"""
|
||||
TAP NIO.
|
||||
|
||||
@@ -50,7 +49,4 @@ class NIOTAP(NIO):
|
||||
|
||||
def asdict(self):
|
||||
|
||||
return {
|
||||
"type": "nio_tap",
|
||||
"tap_device": self._tap_device
|
||||
}
|
||||
return {"type": "nio_tap", "tap_device": self._tap_device}
|
||||
@@ -22,7 +22,6 @@ from .nio import NIO
|
||||
|
||||
|
||||
class NIOUDP(NIO):
|
||||
|
||||
"""
|
||||
UDP NIO.
|
||||
|
||||
@@ -81,5 +80,5 @@ class NIOUDP(NIO):
|
||||
"rhost": self._rhost,
|
||||
"suspend": self._suspended,
|
||||
"filters": self._filters,
|
||||
"markers": self._markers
|
||||
"markers": self._markers,
|
||||
}
|
||||
Reference in new issue
Block a user