File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -490,11 +490,11 @@ the :mod:`glob` module.)
490
490
491
491
.. function :: splitroot(path)
492
492
493
- Split the pathname *path * into a 3-item tuple ``(drive, root, tail) `` where:
494
-
495
- 1. * drive * is a device name, mount point or the empty string;
496
- 2. * root * is a sequence of separators following the drive or the empty string; and
497
- 3. * tail * is anything after the root .
493
+ Split the pathname *path * into a 3-item tuple ``(drive, root, tail) `` where
494
+ * drive * is a device name or mount point, * root * is a string of separators
495
+ after the drive, and * tail * is everything after the root. Any of these
496
+ items may be the empty string. In all cases, `` drive + root + tail `` will
497
+ be the same as * path * .
498
498
499
499
On POSIX systems, *drive * is always empty. The *root * may be empty (if *path * is
500
500
relative), a single forward slash (if *path * is absolute), or two forward slashes
@@ -518,7 +518,6 @@ the :mod:`glob` module.)
518
518
>>> splitroot('//Server/Share/Users/Sam')
519
519
('//Server/Share', '/', 'Users/Sam')
520
520
521
- In all cases, ``drive + root + tail `` will be the same as *path *.
522
521
523
522
.. versionadded :: 3.12
524
523
You can’t perform that action at this time.
0 commit comments