summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 15a48f9..dcd3664 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -38,15 +38,13 @@
#ifdef Py_REF_DEBUG
static
void _print_total_refs(void) {
- PyObject *xoptions, *key, *value;
+ PyObject *xoptions, *value;
+ _Py_IDENTIFIER(showrefcount);
+
xoptions = PySys_GetXOptions();
if (xoptions == NULL)
return;
- key = PyUnicode_FromString("showrefcount");
- if (key == NULL)
- return;
- value = PyDict_GetItem(xoptions, key);
- Py_DECREF(key);
+ value = _PyDict_GetItemId(xoptions, &PyId_showrefcount);
if (value == Py_True)
fprintf(stderr,
"[%" PY_FORMAT_SIZE_T "d refs, "
Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/library/tzdata/Africa/Nouakchott
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-19 14:50:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-19 14:50:11 (GMT)
commitc57eb3c77c77749299dfec90a74977fa9c5c559b (patch)
treeb1a93c9472066ad889bb814aa68d0b255123be23 /library/tzdata/Africa/Nouakchott
parentbd029b94a1f825a22bf635e4c255406562741d5b (diff)
parent562176ad5a881a5f92f2985feab5401c375d559a (diff)
downloadtcl-frq_3527238.zip
tcl-frq_3527238.tar.gz
tcl-frq_3527238.tar.bz2
merge trunkfrq_3527238
<p>change dde version to 1.4.0b2