◐ Shell
clean mode source ↗

bpo-28334: netrc() now uses expanduser() to find .netrc file by berkerpeksag · Pull Request #4537 · python/cpython

Also add more tests to check that proper exceptions are raised

@berkerpeksag berkerpeksag changed the title [DO NOT MERGE] bpo-28334: fix netrc not working when $HOME is not set bpo-28334: fix netrc not working when $HOME is not set

Nov 25, 2017

@berkerpeksag berkerpeksag changed the title bpo-28334: fix netrc not working when $HOME is not set bpo-28334: netrc.netrc() now uses os.path.expanduser() to find .netrc

Nov 25, 2017

@berkerpeksag berkerpeksag changed the title bpo-28334: netrc.netrc() now uses os.path.expanduser() to find .netrc bpo-28334: netrc() now uses expanduser() to find .netrc file

Nov 25, 2017

sloria added a commit to sloria/tinynetrc that referenced this pull request

Jan 12, 2018
Avoids an exception when $HOME is not set.
This behavior matches the behavior in Python 3.7
See python/cpython#4537

close #2