summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/compiler/pycodegen.py3
-rw-r--r--Tools/compiler/compiler/pycodegen.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 2d4564a..444b065 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -1152,6 +1152,9 @@ class AbstractClassCode:
if klass.doc:
self.setDocstring(klass.doc)
+ def _nameOp(self, prefix, name):
+ self.emit(prefix + '_NAME', name)
+
def finish(self):
self.graph.startExitBlock()
self.emit('LOAD_LOCALS')
diff --git a/Tools/compiler/compiler/pycodegen.py b/Tools/compiler/compiler/pycodegen.py
index 2d4564a..444b065 100644
--- a/Tools/compiler/compiler/pycodegen.py
+++ b/Tools/compiler/compiler/pycodegen.py
@@ -1152,6 +1152,9 @@ class AbstractClassCode:
if klass.doc:
self.setDocstring(klass.doc)
+ def _nameOp(self, prefix, name):
+ self.emit(prefix + '_NAME', name)
+
def finish(self):
self.graph.startExitBlock()
self.emit('LOAD_LOCALS')