Skip to content

Commit c597e14

Browse files
committed
Address pylint warnings
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent 1364f58 commit c597e14

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

src/kerf/console/main.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
CTRL_CLOSE_BRACKET = 0x1D # Ctrl+]
3535

3636

37-
def run_console(instance_id: int, instance_name: str, verbose: bool = False) -> int:
37+
def run_console(instance_id: int, instance_name: str, verbose: bool = False) -> int: # pylint: disable=unused-argument
3838
"""
3939
Attach to a running instance's console via mktty device.
4040
@@ -106,11 +106,10 @@ def run_console(instance_id: int, instance_name: str, verbose: bool = False) ->
106106
if byte == ord('.'):
107107
# Detach sequence complete
108108
return 0
109-
else:
110-
# Not a detach sequence, send the buffered Ctrl+]
111-
os.write(mktty_fd, bytes([CTRL_CLOSE_BRACKET]))
112-
saw_ctrl_bracket = False
113-
# Fall through to send current byte
109+
# Not a detach sequence, send the buffered Ctrl+]
110+
os.write(mktty_fd, bytes([CTRL_CLOSE_BRACKET]))
111+
saw_ctrl_bracket = False
112+
# Fall through to send current byte
114113

115114
if byte == CTRL_CLOSE_BRACKET:
116115
# Start of potential detach sequence

src/kerf/daxfs/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,3 @@
1717
from .mkdaxfs import create_daxfs_image, DaxfsError, DaxfsImage, inject_kerf_init
1818

1919
__all__ = ["create_daxfs_image", "DaxfsError", "DaxfsImage", "inject_kerf_init"]
20-
21-
22-
23-

0 commit comments

Comments
 (0)