summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2013-04-14 01:51:04 (GMT)
committerMeador Inge <meadori@gmail.com>2013-04-14 01:51:04 (GMT)
commit2581bdb86a1db29091e5a67ef022415f65909f0f (patch)
tree92d5dcdc7ec822380f8d32a0f56eea8d7515b3a8 /Misc
parentd949126995a7ff63590285aa816da65d97a31403 (diff)
parent9a7a81195ce42efc92fac04c19a2fe9f0562ef51 (diff)
downloadcpython-2581bdb86a1db29091e5a67ef022415f65909f0f.zip
cpython-2581bdb86a1db29091e5a67ef022415f65909f0f.tar.gz
cpython-2581bdb86a1db29091e5a67ef022415f65909f0f.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 c50b41a..9284be3 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -46,6 +46,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 #15480: Remove the deprecated and unused TYPE_INT64 code from marshal.
Initial patch by Daniel Riti.