#14804: Remove [] around optional arguments with default values
Mostly just mechanical removal of []. In some rare cases I've pulled the
default value up into the argument list.
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 7102c76..8569f82 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1181,7 +1181,7 @@
doesn't open the FIFO --- it just creates the rendezvous point.
-.. function:: mknod(filename[, mode=0600, device])
+.. function:: mknod(filename, mode=0600, device=0)
Create a filesystem node (file, device special file or named pipe) named
*filename*. *mode* specifies both the permissions to use and the type of node to
@@ -1583,7 +1583,7 @@
Availability: Unix, Windows.
-.. function:: walk(top[, topdown=True [, onerror=None[, followlinks=False]]])
+.. function:: walk(top, topdown=True, onerror=None, followlinks=False)
.. index::
single: directory; walking