Add versionchanged for #14984, remove extra blank from string.
diff --git a/Doc/library/netrc.rst b/Doc/library/netrc.rst
index 9792799..1b53efc 100644
--- a/Doc/library/netrc.rst
+++ b/Doc/library/netrc.rst
@@ -28,6 +28,8 @@
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 0b4eedf..2b45bc2 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -88,7 +88,7 @@
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),