Add versionchanged for #14984, remove extra blank from string.
This commit is contained in:
parent
4189b67a66
commit
137b572d55
|
@ -28,6 +28,8 @@ the Unix :program:`ftp` program and other FTP clients.
|
||||||
This implements security behavior equivalent to that of ftp and other
|
This implements security behavior equivalent to that of ftp and other
|
||||||
programs that use :file:`.netrc`.
|
programs that use :file:`.netrc`.
|
||||||
|
|
||||||
|
.. versionchanged:: 2.6.9 Added the POSIX permissions check.
|
||||||
|
|
||||||
|
|
||||||
.. exception:: NetrcParseError
|
.. exception:: NetrcParseError
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ class netrc:
|
||||||
try:
|
try:
|
||||||
user = pwd.getpwuid(os.getuid())[0]
|
user = pwd.getpwuid(os.getuid())[0]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
user = 'uid %s ' % os.getuid()
|
user = 'uid %s' % os.getuid()
|
||||||
raise NetrcParseError(
|
raise NetrcParseError(
|
||||||
("~/.netrc file owner (%s) does not match"
|
("~/.netrc file owner (%s) does not match"
|
||||||
" current user (%s)") % (fowner, user),
|
" current user (%s)") % (fowner, user),
|
||||||
|
|
Loading…
Reference in New Issue