commit | 22dcfccee5adb56bf3f2c90dc1ad61cd28251e10 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Jul 18 14:36:12 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Jul 18 14:36:12 2010 +0000 |
tree | 96d9ed1ea5f1cb92d67b4353a03a315e129d18a8 | |
parent | 7a502de6f809f1ecb110bd84ffda94dd852f53ed [diff] [blame] |
remove support for byte literals; a new feature
diff --git a/Lib/ast.py b/Lib/ast.py index 027302f..0b8baf7 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, Bytes)): + if isinstance(node, Str): return node.s elif isinstance(node, Num): return node.n