mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
_init__.py defines the public API for pycriu. It is important to use explicit imports to avoid leaking every symbol from criu.py into the pycriu namespace. This avoids import-time side effects, prevents name collisions, and circular-import traps. Fixes the following lint error: F403 `from .criu import *` used; unable to detect undefined names Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
15 lines
No EOL
343 B
Python
15 lines
No EOL
343 B
Python
from . import rpc_pb2 as rpc
|
|
from . import images
|
|
from .criu import criu, CRIUExceptionExternal, CRIUException
|
|
from .criu import CR_DEFAULT_SERVICE_ADDRESS
|
|
from .version import __version__
|
|
|
|
__all__ = (
|
|
"rpc",
|
|
"images",
|
|
"criu",
|
|
"CRIUExceptionExternal",
|
|
"CRIUException",
|
|
"CR_DEFAULT_SERVICE_ADDRESS",
|
|
"__version__",
|
|
) |