mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
actually fix merge 🙈
This commit is contained in:
parent
bdaa13d498
commit
666c59cbfb
@ -23,6 +23,18 @@ FOOTER_EDITING = [
|
||||
]
|
||||
|
||||
|
||||
class Cell(urwid.WidgetWrap):
|
||||
def get_data(self):
|
||||
"""
|
||||
Raises:
|
||||
ValueError, if the current content is invalid.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def selectable(self):
|
||||
return True
|
||||
|
||||
|
||||
class Column(object, metaclass=abc.ABCMeta):
|
||||
subeditor = None
|
||||
|
||||
@ -45,24 +57,12 @@ class Column(object, metaclass=abc.ABCMeta):
|
||||
return key
|
||||
|
||||
|
||||
class Cell(urwid.WidgetWrap):
|
||||
def get_data(self):
|
||||
"""
|
||||
Raises:
|
||||
ValueError, if the current content is invalid.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def selectable(self):
|
||||
return True
|
||||
|
||||
|
||||
class GridRow(urwid.WidgetWrap):
|
||||
def __init__(
|
||||
self,
|
||||
focused: Optional[int],
|
||||
editing: bool,
|
||||
editor: GridEditor,
|
||||
editor: "GridEditor",
|
||||
values: Tuple[Iterable[bytes], Container[int]]
|
||||
):
|
||||
self.focused = focused
|
||||
@ -117,7 +117,7 @@ class GridWalker(urwid.ListWalker):
|
||||
def __init__(
|
||||
self,
|
||||
lst: Iterable[list],
|
||||
editor: GridEditor
|
||||
editor: "GridEditor"
|
||||
):
|
||||
self.lst = [(i, set()) for i in lst]
|
||||
self.editor = editor
|
||||
|
@ -183,8 +183,7 @@ def load(file_handle: io.BinaryIO) -> TSerializable:
|
||||
return parse(data_type, data)
|
||||
|
||||
|
||||
def parse(data_type: int, data: bytes):
|
||||
# type: (int, bytes) -> TSerializable
|
||||
def parse(data_type: int, data: bytes) -> TSerializable:
|
||||
if data_type == ord(b','):
|
||||
return data
|
||||
if data_type == ord(b';'):
|
||||
|
Loading…
Reference in New Issue
Block a user