8000 Revert docstrings to the equivalent Python ones · python/cpython@ff6bca9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff6bca9

Browse files
mdboomeryksun
andauthored
Revert docstrings to the equivalent Python ones
Co-authored-by: Eryk Sun <eryksun@gmail.com>
1 parent 5818815 commit ff6bca9

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

Modules/posixmodule.c

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14968,10 +14968,7 @@ os._isdir
1496814968
1496914969
path: 'O'
1497014970
14971-
Return True if path is an existing directory.
14972-
14973-
This follows symbolic links, so both islink() and isdir() can be true for the
14974-
same path.
14971+
Return true if the pathname refers to an existing directory.
1497514972
1497614973
[clinic start generated code]*/
1497714974

@@ -15049,10 +15046,7 @@ os._isfile
1504915046
1505015047
path: 'O'
1505115048
15052-
Return True if path is an existing file.
15053-
15054-
This follows symbolic links, so both islink() and isfile() can be true for the
15055-
same path.
15049+
Test whether a path is a regular file
1505615050
1505715051
[clinic start generated code]*/
1505815052

@@ -15130,11 +15124,7 @@ os._exists
1513015124
1513115125
path: 'O'
1513215126
15133-
Return True if path refers to an existing path or an open file descriptor.
15134-
15135-
Return False for broken symbolic links. On some platforms, this function may
15136-
return False if permission is not granted to execute os.stat() on the requested
15137-
file, even if the path exists.
15127+
Test whether a path exists. Returns False for broken symbolic links
1513815128
1513915129
[clinic start generated code]*/
1514015130

@@ -15204,9 +15194,7 @@ os._islink
1520415194
1520515195
path: 'O'
1520615196
15207-
Return True if path refers to an existing directory entry that is a symbolic link.
15208-
15209-
Return False if symbolic links are not supported by the Python runtime.
15197+
Test whether a path is a symbolic link
1521015198
1521115199
[clinic start generated code]*/
1521215200

0 commit comments

Comments
 (0)
0