Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jan 5, 2025
1 parent 334adf9 commit c07037b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kittens/ssh/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion kitty/boss.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from gettext import ngettext
from time import sleep
from typing import (
IO,
TYPE_CHECKING,
Any,
Callable,
Expand Down
2 changes: 1 addition & 1 deletion kitty/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
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
Expand Down

0 comments on commit c07037b

Please sign in to comment.