Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9624559

Browse files
committed
Minor doc update for #9333. Took out the phrasing about os.symlink not
existing and mentioned the OSError possibility.
1 parent 164540f commit 9624559

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

Doc/library/os.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,12 +1395,15 @@ Files and Directories
13951395

13961396
.. note::
13971397

1398-
The *SeCreateSymbolicLinkPrivilege* is required in order to create
1399-
symlinks, so the function is only available when the privilege is held.
1400-
This privilege is not typically granted to regular users but is available
1401-
to accounts which can escalate privileges to the administrator level.
1402-
Either obtaining the privilege or running your application as an
1403-
administrator are ways to successfully create symlinks.
1398+
The *SeCreateSymbolicLinkPrivilege* is required in order to successfully
1399+
create symlinks. This privilege is not typically granted to regular
1400+
users but is available to accounts which can escalate privileges to the
1401+
administrator level. Either obtaining the privilege or running your
1402+
application as an administrator are ways to successfully create symlinks.
1403+
1404+
1405+
:exc:`OSError` is raised when the function is called by an unprivileged
1406+
user.
14041407

14051408
Availability: Unix, Windows.
14061409

0 commit comments

Comments
 (0)