diff options
author | Thomas Wouters <thomas@python.org> | 2007-02-23 19:56:57 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-02-23 19:56:57 +0000 |
commit | 00e41defe8801ef37548fb60abacb3be13156d2a (patch) | |
tree | 863d072e568fee2b8f4959016b5954de457c7f4c /Lib/compiler/pycodegen.py | |
parent | cf297e46b85257396560774e5492e9d71a40f32e (diff) | |
download | cpython-git-00e41defe8801ef37548fb60abacb3be13156d2a.tar.gz |
Bytes literal.
Diffstat (limited to 'Lib/compiler/pycodegen.py')
-rw-r--r-- | Lib/compiler/pycodegen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 8db4e0de72..83fbc173ca 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -930,6 +930,10 @@ class CodeGenerator: def visitConst(self, node): self.emit('LOAD_CONST', node.value) + + def visitBytes(self, node): + self.emit('LOAD_CONST', node.value) + self.emit('MAKE_BYTES') def visitKeyword(self, node): self.emit('LOAD_CONST', node.name) |