summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-10-24 00:10:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-10-24 00:10:06 (GMT)
commit9047c8f73d0e8c865452f80a4219d647be7c433a (patch)
treeee43ced8c934a7477d2025291774d667495a8bad /Python
parent7cb13a971d6dc0feb50393a4c9a930928253a940 (diff)
downloadcpython-9047c8f73d0e8c865452f80a4219d647be7c433a.zip
cpython-9047c8f73d0e8c865452f80a4219d647be7c433a.tar.gz
cpython-9047c8f73d0e8c865452f80a4219d647be7c433a.tar.bz2
SF bug #1048870: call arg of lambda not updating
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index dc636c0..dfb94d3 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -261,6 +261,8 @@ code_compare(PyCodeObject *co, PyCodeObject *cp)
if (cmp) return (cmp<0)?-1:1;
cmp = co->co_flags - cp->co_flags;
if (cmp) return (cmp<0)?-1:1;
+ cmp = co->co_firstlineno - cp->co_firstlineno;
+ if (cmp) return (cmp<0)?-1:1;
cmp = PyObject_Compare(co->co_code, cp->co_code);
if (cmp) return cmp;
cmp = PyObject_Compare(co->co_consts, cp->co_consts);