@@ -490,10 +490,10 @@ by file descriptors.
490490
491491.. function :: open(file, flags[, mode])
492492
493- Open the file *file * and set various flags according to *flags * and possibly its
494- mode according to *mode *. The default *mode * is ``0777 `` (octal), and the
495- current umask value is first masked out. Return the file descriptor for the
496- newly opened file. Availability: Macintosh, Unix, Windows.
493+ Open the file *file * and set various flags according to *flags * and possibly
494+ its mode according to *mode *. The default *mode * is ``0o777 `` (octal), and
495+ the current umask value is first masked out. Return the file descriptor for
496+ the newly opened file. Availability: Macintosh, Unix, Windows.
497497
498498 For a description of the flag and mode values, see the C run-time documentation;
499499 flag constants (like :const: `O_RDONLY ` and :const: `O_WRONLY `) are defined in
@@ -823,9 +823,9 @@ Files and Directories
823823
824824.. function :: mkfifo(path[, mode])
825825
826- Create a FIFO (a named pipe) named *path * with numeric mode *mode *. The default
827- *mode * is ``0666 `` (octal). The current umask value is first masked out from
828- the mode. Availability: Macintosh, Unix.
826+ Create a FIFO (a named pipe) named *path * with numeric mode *mode *. The
827+ default *mode * is ``0o666 `` (octal). The current umask value is first masked
828+ out from the mode. Availability: Macintosh, Unix.
829829
830830 FIFOs are pipes that can be accessed like regular files. FIFOs exist until they
831831 are deleted (for example with :func: `os.unlink `). Generally, FIFOs are used as
@@ -834,7 +834,7 @@ Files and Directories
834834 doesn't open the FIFO --- it just creates the rendezvous point.
835835
836836
837- .. function :: mknod(filename[, mode=0600 , device])
837+ .. function :: mknod(filename[, mode=0o600 , device])
838838
839839 Create a filesystem node (file, device special file or named pipe) named
840840 *filename *. *mode * specifies both the permissions to use and the type of node to
@@ -865,9 +865,10 @@ Files and Directories
865865
866866.. function :: mkdir(path[, mode])
867867
868- Create a directory named *path * with numeric mode *mode *. The default *mode * is
869- ``0777 `` (octal). On some systems, *mode * is ignored. Where it is used, the
870- current umask value is first masked out. Availability: Macintosh, Unix, Windows.
868+ Create a directory named *path * with numeric mode *mode *. The default *mode *
869+ is ``0o777 `` (octal). On some systems, *mode * is ignored. Where it is used,
870+ the current umask value is first masked out. Availability: Macintosh, Unix,
871+ Windows.
871872
872873 It is also possible to create temporary directories; see the
873874 :mod: `tempfile ` module's :func: `tempfile.mkdtemp ` function.
@@ -880,10 +881,10 @@ Files and Directories
880881 single: UNC paths; and os.makedirs()
881882
882883 Recursive directory creation function. Like :func: `mkdir `, but makes all
883- intermediate-level directories needed to contain the leaf directory. Throws an
884- :exc: `error ` exception if the leaf directory already exists or cannot be
885- created. The default *mode * is ``0777 `` (octal). On some systems, *mode * is
886- ignored. Where it is used, the current umask value is first masked out.
884+ intermediate-level directories needed to contain the leaf directory. Throws
885+ an :exc: `error ` exception if the leaf directory already exists or cannot be
886+ created. The default *mode * is ``0o777 `` (octal). On some systems, *mode *
887+ is ignored. Where it is used, the current umask value is first masked out.
887888
888889 .. note ::
889890
0 commit comments