]> granicus.if.org Git - python/commitdiff
Add versionchanged for #14984, remove extra blank from string.
authorR David Murray <rdmurray@bitdance.com>
Wed, 18 Sep 2013 00:08:09 +0000 (20:08 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 18 Sep 2013 00:08:09 +0000 (20:08 -0400)
Doc/library/netrc.rst
Lib/netrc.py

index 97927998fabab95d33143f6169cb8f0eff71943a..1b53efc542a006bd6832832be27c51d962611e44 100644 (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
    programs that use :file:`.netrc`.
 
+   .. versionchanged:: 2.6.9 Added the POSIX permissions check.
+
 
 .. exception:: NetrcParseError
 
index 0b4eedff4eed4aa00983c2a1ad5c6d4de640567c..2b45bc2518abaa3030d59b8032ccdf42ddb73830 100644 (file)
@@ -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),