Move tractor._shm to tractor.ipc._shm

Guillermo Rodriguez 2025-03-13 20:59:14 -03:00
parent 9cbe294996
commit 07dab8519e
No known key found for this signature in database
GPG Key ID: 002CC5F1E6BDA53E
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import time
import trio import trio
import pytest import pytest
import tractor import tractor
from tractor._shm import ( from tractor.ipc._shm import (
EFD_NONBLOCK, EFD_NONBLOCK,
open_eventfd, open_eventfd,
RingBuffSender, RingBuffSender,

View File

@ -8,7 +8,7 @@ import uuid
import pytest import pytest
import trio import trio
import tractor import tractor
from tractor._shm import ( from tractor.ipc._shm import (
open_shm_list, open_shm_list,
attach_shm_list, attach_shm_list,
) )

View File

@ -7,5 +7,5 @@ from ._chan import (
__all__ = [ __all__ = [
'_connect_chan', '_connect_chan',
'MsgTransport', 'MsgTransport',
'Channel' 'Channel',
] ]

View File

@ -36,7 +36,7 @@ from multiprocessing.shared_memory import (
from msgspec import Struct, to_builtins from msgspec import Struct, to_builtins
import tractor import tractor
from .log import get_logger from tractor.log import get_logger
_USE_POSIX = getattr(shm, '_USE_POSIX', False) _USE_POSIX = getattr(shm, '_USE_POSIX', False)