From: Benjamin Peterson Date: Tue, 21 Feb 2012 20:08:51 +0000 (-0500) Subject: don't need this hack anymore X-Git-Tag: v2.7.3rc1~10^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e171d12da0e75ddcf5e019d5ca4553ca86265cd;p=thirdparty%2FPython%2Fcpython.git don't need this hack anymore --- diff --git a/Modules/main.c b/Modules/main.c index 929991a8c55f..12376aea19d2 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -422,12 +422,6 @@ Py_Main(int argc, char **argv) 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':