summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2013-04-14 01:29:49 (GMT)
committerMeador Inge <meadori@gmail.com>2013-04-14 01:29:49 (GMT)
commit9a7a81195ce42efc92fac04c19a2fe9f0562ef51 (patch)
tree06d534e2310a7b5430d22e0f8344d21770763e01 /Misc
parent0bfd6acf03640f8910b8f9fa10cc7775a7c55449 (diff)
downloadcpython-9a7a81195ce42efc92fac04c19a2fe9f0562ef51.zip
cpython-9a7a81195ce42efc92fac04c19a2fe9f0562ef51.tar.gz
cpython-9a7a81195ce42efc92fac04c19a2fe9f0562ef51.tar.bz2
Issue #16804: Fix 'python -S -m site' failure.
This commit fixes a bug in the 'site' module that was causing an exception to incorrectly be thrown when running 'python -S -m site'. The problem was that 'USER_BASE' and 'USER_SITE' were being accessed before they were properly initialized. The code has been changed to use 'getuserbase' and 'getusersitepackages' instead so that the initialization always happens.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7218747..3187ab0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -29,6 +29,9 @@ Core and Builtins
Library
-------
+- Issue #16804: Fix a bug in the 'site' module that caused running
+ 'python -S -m site' to incorrectly throw an exception.
+
- Issue #17016: Get rid of possible pointer wraparounds and integer overflows
in the re module. Patch by Nickolai Zeldovich.