commit 71fec80954ecb253696002179fe1b30d92e49a18
parent d7ca5af7415e19445d4f262fac6e8c105b0c25a3
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Thu, 22 Feb 2024 07:01:01 +0100
For python compatibility do not require slots for dataclasses
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/userns_sandbox.py b/userns_sandbox.py
@@ -234,7 +234,7 @@ def pidns_run(unshare_flags, continuation, *args, **kwargs):
exit_status(status)
-@dataclasses.dataclass(frozen=True, slots=True)
+@dataclasses.dataclass(frozen=True)
class MountTMPFS:
path: pathlib.PosixPath
@@ -248,7 +248,7 @@ class MountTMPFS:
mount('tmpfs', dst, 'tmpfs', MountFlag.NOSUID | MountFlag.NODEV)
-@dataclasses.dataclass(frozen=True, slots=True)
+@dataclasses.dataclass(frozen=True)
class MountBind:
src: pathlib.PosixPath
dst: pathlib.PosixPath