mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
...
This commit is contained in:
parent
334adf9c1a
commit
c07037b558
3 changed files with 3 additions and 4 deletions
|
|
@ -85,11 +85,11 @@ def set_cwd_in_cmdline(cwd: str, argv: List[str]) -> None:
|
|||
|
||||
|
||||
def create_shared_memory(data: Any, prefix: str) -> str:
|
||||
import json
|
||||
import atexit
|
||||
import json
|
||||
|
||||
from kitty.shm import SharedMemory
|
||||
from kitty.fast_data_types import get_boss
|
||||
from kitty.shm import SharedMemory
|
||||
db = json.dumps(data).encode('utf-8')
|
||||
with SharedMemory(size=len(db) + SharedMemory.num_bytes_for_size, prefix=prefix) as shm:
|
||||
shm.write_data_with_size(db)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ from gettext import gettext as _
|
|||
from gettext import ngettext
|
||||
from time import sleep
|
||||
from typing import (
|
||||
IO,
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Callable,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ from .constants import (
|
|||
from .fast_data_types import WINDOW_FULLSCREEN, WINDOW_MAXIMIZED, WINDOW_MINIMIZED, WINDOW_NORMAL, Color, Shlex, get_options, monotonic, open_tty
|
||||
from .fast_data_types import timed_debug_print as _timed_debug_print
|
||||
from .types import run_once
|
||||
from .typing import AddressFamily, PopenType, Socket, StartupCtx
|
||||
from .typing import AddressFamily, PopenType, StartupCtx
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import tarfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue