summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2024-03-02 09:13:25 +0100
committerHelmut Grohne <helmut@subdivi.de>2024-03-02 13:46:14 +0100
commitfb1ab1fabb0f9f7f470620cb30700c795a7bbd1c (patch)
tree4488f502e095fbb9428a5d0de6629bea87e562a2
parentce1f66fd9fbccd8dc27ffb6d8338ab3566d03026 (diff)
downloadpython-linuxnamespaces-fb1ab1fabb0f9f7f470620cb30700c795a7bbd1c.tar.gz
fix typos
-rwxr-xr-xexamples/chrootfuse.py2
-rw-r--r--linuxnamespaces/syscalls.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/chrootfuse.py b/examples/chrootfuse.py
index d40e1a0..55a394e 100755
--- a/examples/chrootfuse.py
+++ b/examples/chrootfuse.py
@@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3
"""Mount a given filesystem image inside a user and mount namespace using
-an unprivileged fuse driver and chroot into the mouned filesystem. Supported
+an unprivileged fuse driver and chroot into the mounted filesystem. Supported
drivers are fuse2fs and squashfuse.
This requires a fuse package with support for /dev/fd/N. Either with fuse2 via
diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py
index ab715f2..c22a9d8 100644
--- a/linuxnamespaces/syscalls.py
+++ b/linuxnamespaces/syscalls.py
@@ -220,7 +220,7 @@ class MountFlags(enum.IntFlag):
def tostr(self) -> str:
"""Attempt to represent the flags in a comma-separated, textual way."""
if (self & MountFlags.PROPAGATION_FLAGS).bit_count() > 1:
- raise ValueError("cannot represent conflicting propagtion flags")
+ raise ValueError("cannot represent conflicting propagation flags")
parts: list[str] = []
remain = self
for val, text in MountFlags.__flagvals:
@@ -440,7 +440,7 @@ class EventFD:
fut.set_result(result)
def aread(self) -> typing.Awaitable[int]:
- """Decrease the value of the eventfd asynchronously. It mst have been
+ """Decrease the value of the eventfd asynchronously. It must have been
constructed using EventFDFlags.NONBLOCK.
"""
if self.fd < 0: