commit | c8a0d2f368401adefcf39c672c74e2cfee1c32b0 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Tue May 06 16:18:41 2008 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Tue May 06 16:18:41 2008 +0000 |
tree | 1fb89928ace7330e0bb14ea00fcdbe6962f63636 | |
parent | 8e4997390ccb92f889ac709c9a45e589472bdee2 [diff] [blame] |
Intern static string Use float constructors instead of magic code for float constants
diff --git a/Modules/_json.c b/Modules/_json.c index deee1e3..ea6d66f 100644 --- a/Modules/_json.c +++ b/Modules/_json.c
@@ -215,7 +215,7 @@ ustr = PyUnicode_FromUnicode(&c, 0); } if (joinstr == NULL) { - joinstr = PyString_FromString("join"); + joinstr = PyString_InternFromString("join"); } if (joinstr == NULL || ustr == NULL) { return NULL;