diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-05-25 10:22:21 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-05-25 10:22:21 +0200 |
commit | c5c9fe325782a790d563a0a8b1cf62a855a50d81 (patch) | |
tree | 16fb8834cd3e260615497faf03f0f78e2929c305 /linuxnamespaces/__init__.py | |
parent | 992e877614476dd40abd11a82ffedc6e261dabdf (diff) | |
download | python-linuxnamespaces-c5c9fe325782a790d563a0a8b1cf62a855a50d81.tar.gz |
add a FileDescriptor type
It serves two main purposes. For one thing, it allows telling bare
integers and file descriptors apart on a typing level similar to a
NewType. For another it adds common methods to a file descriptor and
enables closing it via a context manager.
Diffstat (limited to 'linuxnamespaces/__init__.py')
-rw-r--r-- | linuxnamespaces/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py index 3302867..b50f113 100644 --- a/linuxnamespaces/__init__.py +++ b/linuxnamespaces/__init__.py @@ -16,6 +16,7 @@ import stat import subprocess import typing +from .filedescriptor import FileDescriptor from .atlocation import * from .syscalls import * |