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 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

View File

@ -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),