commit | 5ef96e5fac6f784d3c9336ed0215397e934bff4f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Jul 11 23:06:06 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Jul 11 23:06:06 2010 +0000 |
tree | 2eebbec9a29bf21f1ea6e066b6b068a4083ad44c | |
parent | c762242ccad80957e432bbc9563549b7508b0f92 [diff] [blame] |
allow byte literals
diff --git a/Lib/ast.py b/Lib/ast.py index 092f077..d595c05 100644 --- a/Lib/ast.py +++ b/Lib/ast.py
@@ -50,7 +50,7 @@ if isinstance(node_or_string, Expression): node_or_string = node_or_string.body def _convert(node): - if isinstance(node, Str): + if isinstance(node, (Str, Bytes)): return node.s elif isinstance(node, Num): return node.n