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

Skip to content

Commit 137b572

Browse files
committed
Add versionchanged for python#14984, remove extra blank from string.
1 parent 4189b67 commit 137b572

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/library/netrc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ the Unix :program:`ftp` program and other FTP clients.
2828
This implements security behavior equivalent to that of ftp and other
2929
programs that use :file:`.netrc`.
3030

31+
.. versionchanged:: 2.6.9 Added the POSIX permissions check.
32+
3133

3234
.. exception:: NetrcParseError
3335

Lib/netrc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, file=None):
8888
try:
8989
user = pwd.getpwuid(os.getuid())[0]
9090
except KeyError:
91-
user = 'uid %s ' % os.getuid()
91+
user = 'uid %s' % os.getuid()
9292
raise NetrcParseError(
9393
("~/.netrc file owner (%s) does not match"
9494
" current user (%s)") % (fowner, user),

0 commit comments

Comments
 (0)