[Python-checkins] cpython (2.6): don't need this hack anymore
benjamin.peterson
python-checkins at python.org
Tue Feb 21 21:09:15 CET 2012
http://hg.python.org/cpython/rev/6075df248b90
changeset: 75150:6075df248b90
branch: 2.6
parent: 75148:76d72e92fdea
user: Benjamin Peterson <benjamin at python.org>
date: Tue Feb 21 15:08:51 2012 -0500
summary:
don't need this hack anymore
files:
Modules/main.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/Modules/main.c b/Modules/main.c
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -422,12 +422,6 @@
case 'W':
PySys_AddWarnOption(_PyOS_optarg);
- /* Extremely obscure hack: if _PyOS_optarg was one character,
- PyString_FromString in PySys_AddWarnOption will try to intern
- it. This is bad because hash randomization has not been setup
- yet, so the string will get the wrong hash. The following call
- will cause all the cached characters to be released. */
- PyString_Fini();
break;
case 'R':
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list