summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/pycodegen.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/compiler/pycodegen.py')
-rw-r--r--Lib/compiler/pycodegen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 3f5ef89..904d066 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -495,6 +495,7 @@ class CodeGenerator:
# misc
def visitDiscard(self, node):
+ self.set_lineno(node)
self.visit(node.expr)
self.emit('POP_TOP')