[Python-checkins] cpython (2.6): Add versionchanged for #14984, remove extra blank from string.

r.david.murray python-checkins at python.org
Wed Sep 18 02:11:46 CEST 2013


http://hg.python.org/cpython/rev/1b673e0fd8f3
changeset:   85735:1b673e0fd8f3
branch:      2.6
parent:      85728:e5c4eb6b8e05
user:        R David Murray <rdmurray at bitdance.com>
date:        Tue Sep 17 20:08:09 2013 -0400
summary:
  Add versionchanged for #14984, remove extra blank from string.

files:
  Doc/library/netrc.rst |  2 ++
  Lib/netrc.py          |  2 +-
  2 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Doc/library/netrc.rst b/Doc/library/netrc.rst
--- 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
--- 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),

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list