Add versionchanged for #14984, remove extra blank from string.

This commit is contained in:
R David Murray 2013-09-17 20:08:09 -04:00
parent 4189b67a66
commit 137b572d55
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ the Unix :program:`ftp` program and other FTP clients.
This implements security behavior equivalent to that of ftp and other
programs that use :file:`.netrc`.
.. versionchanged:: 2.6.9 Added the POSIX permissions check.
.. exception:: NetrcParseError

View File

@ -88,7 +88,7 @@ class netrc:
try:
user = pwd.getpwuid(os.getuid())[0]
except KeyError:
user = 'uid %s ' % os.getuid()
user = 'uid %s' % os.getuid()
raise NetrcParseError(
("~/.netrc file owner (%s) does not match"
" current user (%s)") % (fowner, user),