mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
...
This commit is contained in:
@@ -137,7 +137,7 @@ class Clipboard:
|
|||||||
def __call__(self, mime: str) -> Callable[[], bytes]:
|
def __call__(self, mime: str) -> Callable[[], bytes]:
|
||||||
data = self.data.get(mime, b'')
|
data = self.data.get(mime, b'')
|
||||||
if isinstance(data, str):
|
if isinstance(data, str):
|
||||||
data = data.encode('utf-8')
|
data = data.encode('utf-8') # type: ignore
|
||||||
if isinstance(data, bytes):
|
if isinstance(data, bytes):
|
||||||
def chunker() -> bytes:
|
def chunker() -> bytes:
|
||||||
nonlocal data
|
nonlocal data
|
||||||
|
|||||||
Reference in New Issue
Block a user