From 137b572d55af5e6777a766de4d595cbff111d0c3 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Tue, 17 Sep 2013 20:08:09 -0400 Subject: [PATCH] Add versionchanged for #14984, remove extra blank from string. --- Doc/library/netrc.rst | 2 ++ Lib/netrc.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/netrc.rst b/Doc/library/netrc.rst index 97927998fab..1b53efc542a 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 0b4eedff4ee..2b45bc2518a 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),