]> granicus.if.org Git - python/commit
Replace all but one explicit emit('SET_LINENO') with call to set_lineno().
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 31 Dec 2002 18:26:17 +0000 (18:26 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 31 Dec 2002 18:26:17 +0000 (18:26 +0000)
commit18565411429053a68ee318fc9e59370e8bd7b7b8
treeeb03f285139a8cb3c1b27b9ae1f7563ac922ac27
parentcf94ee817c71a8e18aa637893c3a5910e20290d9
Replace all but one explicit emit('SET_LINENO') with call to set_lineno().

Remove broken code in visitDict().  I assume the code was trying to
add set lineno events for each line of a dict constructor, but I think
it was using the wrong object (node instead of k or v).
Lib/compiler/pycodegen.py