]> granicus.if.org Git - python/commitdiff
don't need this hack anymore
authorBenjamin Peterson <benjamin@python.org>
Tue, 21 Feb 2012 20:08:51 +0000 (15:08 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 21 Feb 2012 20:08:51 +0000 (15:08 -0500)
Modules/main.c

index 929991a8c55f89c5f414d05af387d5ad10f194f4..12376aea19d2ddea30d7346be4f98f2a33ab3b1a 100644 (file)
@@ -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':