diff options
author | Christian Heimes <christian@cheimes.de> | 2008-05-06 16:18:41 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-05-06 16:18:41 (GMT) |
commit | c8a0d2f368401adefcf39c672c74e2cfee1c32b0 (patch) | |
tree | 1fb89928ace7330e0bb14ea00fcdbe6962f63636 /Modules/_json.c | |
parent | 8e4997390ccb92f889ac709c9a45e589472bdee2 (diff) | |
download | cpython-c8a0d2f368401adefcf39c672c74e2cfee1c32b0.zip cpython-c8a0d2f368401adefcf39c672c74e2cfee1c32b0.tar.gz cpython-c8a0d2f368401adefcf39c672c74e2cfee1c32b0.tar.bz2 |
Intern static string
Use float constructors instead of magic code for float constants
Diffstat (limited to 'Modules/_json.c')
-rw-r--r-- | Modules/_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ join_list_unicode(PyObject *lst) ustr = PyUnicode_FromUnicode(&c, 0); } if (joinstr == NULL) { - joinstr = PyString_FromString("join"); + joinstr = PyString_InternFromString("join"); } if (joinstr == NULL || ustr == NULL) { return NULL; |