...
This commit is contained in:
parent
79fba9dd9a
commit
dd4a65e0c9
1 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,8 @@ def get_available_mime_types_for_paste(self) -> Tuple[str, ...]:
|
|||
|
||||
def __call__(self, mime: str) -> Callable[[], bytes]:
|
||||
data = self.data.get(mime, b'')
|
||||
if isinstance(data, str): # type: ignore
|
||||
data = data.encode('utf-8') # type: ignore
|
||||
if isinstance(data, bytes):
|
||||
def chunker() -> bytes:
|
||||
nonlocal data
|
||||
|
|
|
|||
Loading…
Reference in a new issue