From: R David Murray Date: Wed, 18 Sep 2013 00:08:09 +0000 (-0400) Subject: Add versionchanged for #14984, remove extra blank from string. X-Git-Tag: v2.6.9rc1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=137b572d55af5e6777a766de4d595cbff111d0c3;p=python Add versionchanged for #14984, remove extra blank from string. --- diff --git a/Doc/library/netrc.rst b/Doc/library/netrc.rst index 97927998fa..1b53efc542 100644 --- a/Doc/library/netrc.rst +++ b/Doc/library/netrc.rst @@ -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 diff --git a/Lib/netrc.py b/Lib/netrc.py index 0b4eedff4e..2b45bc2518 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -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),