summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-01-31 11:32:17 +0100
committerHelmut Grohne <helmut@subdivi.de>2024-02-02 10:41:07 +0100
commit72ff759384538d412b5114d72b3115b730c06406 (patch)
tree5ff4ac15f0a8bafd62fcc189d0104e765066d7fc /examples
parentbb83f3fe1bec0730788607aab7ca874441a74100 (diff)
downloadpython-linuxnamespaces-72ff759384538d412b5114d72b3115b730c06406.tar.gz
examples/userchroot.py: delete unused function
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/userchroot.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/userchroot.py b/examples/userchroot.py
index 73d52b3..9c05c6f 100755
--- a/examples/userchroot.py
+++ b/examples/userchroot.py
@@ -18,16 +18,6 @@ if __file__.split("/")[-2:-1] == ["examples"]:
import linuxnamespaces
-def open_tree_clone_rec(
- path: linuxnamespaces.PathConvertible,
-) -> linuxnamespaces.AtLocation:
- return linuxnamespaces.open_tree(
- path,
- linuxnamespaces.OpenTreeFlags.OPEN_TREE_CLONE
- | linuxnamespaces.OpenTreeFlags.AT_RECURSIVE,
- )
-
-
def main() -> None:
chrootdir = pathlib.Path(sys.argv[1])
assert chrootdir.is_dir()