summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTimothy Hopper <tdhopper@users.noreply.github.com>2019-08-02 22:20:14 (GMT)
committerSteve Dower <steve.dower@python.org>2019-08-02 22:20:14 (GMT)
commit7ea9a85f132b32347fcbd2cbe1b553a2e9890b56 (patch)
tree5f941b1b728d2500ce4d6c5622cb3d2947cae39c /Misc
parent8fbece135d7615e836a845ca39223097046c8b8b (diff)
downloadcpython-7ea9a85f132b32347fcbd2cbe1b553a2e9890b56.zip
cpython-7ea9a85f132b32347fcbd2cbe1b553a2e9890b56.tar.gz
cpython-7ea9a85f132b32347fcbd2cbe1b553a2e9890b56.tar.bz2
bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)
Previously pdb checked the $HOME environmental variable to find the user .pdbrc. If $HOME is not set, the user .pdbrc would not be found. Change pdb to use `os.path.expanduser('~')` to determine the user's home directory. Thus, if $HOME is not set (as in tox or on Windows), os.path.expanduser('~') falls back on other techniques for locating the user's home directory. This follows pip's implementation for loading .piprc. Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-02-15-20-42-36.bpo-20523.rRLrvr.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-02-15-20-42-36.bpo-20523.rRLrvr.rst b/Misc/NEWS.d/next/Core and Builtins/2019-02-15-20-42-36.bpo-20523.rRLrvr.rst
new file mode 100644
index 0000000..91397c2
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-02-15-20-42-36.bpo-20523.rRLrvr.rst
@@ -0,0 +1,2 @@
+``pdb.Pdb`` supports ~/.pdbrc in Windows 7. Patch by Tim Hopper and Dan
+Lidral-Porter. \ No newline at end of file