summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-08-16 09:01:55 (GMT)
committerGuido van Rossum <guido@python.org>1991-08-16 09:01:55 (GMT)
commitb881314b6fadefb2f2b9c9948ed09e4dfd848ebe (patch)
tree310babf9974867c8efe3da2576bb6da5e7dd5460 /Python/marshal.c
parentf0ada4a130c24a5b10b02f3b51ee0b7cd632cb4b (diff)
downloadcpython-b881314b6fadefb2f2b9c9948ed09e4dfd848ebe.zip
cpython-b881314b6fadefb2f2b9c9948ed09e4dfd848ebe.tar.gz
cpython-b881314b6fadefb2f2b9c9948ed09e4dfd848ebe.tar.bz2
Use dict2lookup.
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 2049c9b..1af49eb 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -134,7 +134,7 @@ wr_object(v, fp)
extern object *getdict2key();
key = getdict2key(v, (int)i);
if (key != NULL) {
- val = dictlookup(v, getstringvalue(key));
+ val = dict2lookup(v, key); /* Can't be NULL */
wr_object(key, fp);
wr_object(val, fp);
}