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/ast.py | |
parent | cf297e46b85257396560774e5492e9d71a40f32e (diff) | |
download | cpython-git-00e41defe8801ef37548fb60abacb3be13156d2a.tar.gz |
Bytes literal.
Diffstat (limited to 'Lib/compiler/ast.py')
-rw-r--r-- | Lib/compiler/ast.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/compiler/ast.py b/Lib/compiler/ast.py index bc283c08bd..4794d66da6 100644 --- a/Lib/compiler/ast.py +++ b/Lib/compiler/ast.py @@ -267,6 +267,20 @@ class Break(Node): def __repr__(self): return "Break()" +class Bytes(Node): + def __init__(self, value, lineno=None): + self.value = value + self.lineno = lineno + + def getChildren(self): + return self.value, + + def getChildNodes(self): + return () + + def __repr__(self): + return "Bytes(%s)" % (repr(self.value),) + class CallFunc(Node): def __init__(self, node, args, star_args = None, dstar_args = None, lineno=None): self.node = node |