diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-11-25 10:37:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-25 10:37:22 (GMT) |
commit | 8d9bb11d8fcbf10cc9b1eb0a647bcf3658a4e3dd (patch) | |
tree | 96a2d24856b7ea63dfb3992125e3e90447ab52fb /Misc | |
parent | 9d5ec808de2c1359f434cc2fa8378458e4339c96 (diff) | |
download | cpython-8d9bb11d8fcbf10cc9b1eb0a647bcf3658a4e3dd.zip cpython-8d9bb11d8fcbf10cc9b1eb0a647bcf3658a4e3dd.tar.gz cpython-8d9bb11d8fcbf10cc9b1eb0a647bcf3658a4e3dd.tar.bz2 |
bpo-28334: netrc() now uses expanduser() to find .netrc file (GH-4537)
Previously, netrc.netrc() was raised an exception if $HOME is not set.
Authored-By: Dimitri Merejkowsky <dimitri.merejkowsky@tanker.io>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-11-24-11-50-41.bpo-28334.3gGGlt.rst | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -1031,6 +1031,7 @@ Bill van Melle Lucas Prado Melo Ezio Melotti Doug Mennella +Dimitri Merejkowsky Brian Merrell Alexis Métaireau Luke Mewburn diff --git a/Misc/NEWS.d/next/Library/2017-11-24-11-50-41.bpo-28334.3gGGlt.rst b/Misc/NEWS.d/next/Library/2017-11-24-11-50-41.bpo-28334.3gGGlt.rst new file mode 100644 index 0000000..074036b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-11-24-11-50-41.bpo-28334.3gGGlt.rst @@ -0,0 +1,3 @@ +Use :func:`os.path.expanduser` to find the ``~/.netrc`` file in +:class:`netrc.netrc`. If it does not exist, :exc:`FileNotFoundError` +is raised. Patch by Dimitri Merejkowsky. |