diff Python/compile.c @ 32956:071d3381753b legacy-trunk

Revert 2.312; turns out interning the file name did do some good (reducing .pyc size) after all.
author Michael W. Hudson <mwh@python.net>
date Wed, 04 Aug 2004 10:26:08 +0000
parents 41facc3ccdd3
children 40c3a51cb71c
line wrap: on
line diff
--- a/Python/compile.c	Wed Aug 04 08:38:08 2004 +0000
+++ b/Python/compile.c	Wed Aug 04 10:26:08 2004 +0000
@@ -4731,7 +4731,7 @@
 		cellvars = dict_keys_inorder(sc.c_cellvars, 0);
 		freevars = dict_keys_inorder(sc.c_freevars,
 					     PyTuple_GET_SIZE(cellvars));
-		filename = PyString_FromString(sc.c_filename);
+		filename = PyString_InternFromString(sc.c_filename);
 		name = PyString_InternFromString(sc.c_name);
 		if (!PyErr_Occurred())
 			co = PyCode_New(sc.c_argcount,