4
4
.. module :: os.path
5
5
:synopsis: Operations on pathnames.
6
6
7
- **Source code: ** :source: `Lib/posixpath.py ` (for POSIX) and
7
+ **Source code: ** :source: `Lib/genericpath.py `, :source: ` Lib/ posixpath.py ` (for POSIX) and
8
8
:source: `Lib/ntpath.py ` (for Windows).
9
9
10
10
.. index :: single: path; operations
@@ -85,8 +85,6 @@ the :mod:`glob` module.)
85
85
if *paths * is empty. Unlike :func: `commonprefix `, this returns a
86
86
valid path.
87
87
88
- .. availability :: Unix, Windows.
89
-
90
88
.. versionadded :: 3.5
91
89
92
90
.. versionchanged :: 3.6
@@ -412,8 +410,6 @@ the :mod:`glob` module.)
412
410
413
411
*start * defaults to :data: `os.curdir `.
414
412
415
- .. availability :: Unix, Windows.
416
-
417
413
.. versionchanged :: 3.6
418
414
Accepts a :term: `path-like object `.
419
415
@@ -424,8 +420,6 @@ the :mod:`glob` module.)
424
420
This is determined by the device number and i-node number and raises an
425
421
exception if an :func: `os.stat ` call on either pathname fails.
426
422
427
- .. availability :: Unix, Windows.
428
-
429
423
.. versionchanged :: 3.2
430
424
Added Windows support.
431
425
@@ -440,8 +434,6 @@ the :mod:`glob` module.)
440
434
441
435
Return ``True `` if the file descriptors *fp1 * and *fp2 * refer to the same file.
442
436
443
- .. availability :: Unix, Windows.
444
-
445
437
.. versionchanged :: 3.2
446
438
Added Windows support.
447
439
@@ -456,8 +448,6 @@ the :mod:`glob` module.)
456
448
:func: `os.lstat `, or :func: `os.stat `. This function implements the
457
449
underlying comparison used by :func: `samefile ` and :func: `sameopenfile `.
458
450
459
- .. availability :: Unix, Windows.
460
-
461
451
.. versionchanged :: 3.4
462
452
Added Windows support.
463
453
0 commit comments