summaryrefslogtreecommitdiffstats
path: root/Parser/asdl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-09 21:08:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-09 21:08:39 (GMT)
commite2498419034eade424fa744e1505980e64ba759b (patch)
tree22fe40b438aebff64ba9ab784a79cebce252cd23 /Parser/asdl.py
parent18205baf251495b5a54b08c1f9b0e1763eb27aa1 (diff)
downloadcpython-e2498419034eade424fa744e1505980e64ba759b.zip
cpython-e2498419034eade424fa744e1505980e64ba759b.tar.gz
cpython-e2498419034eade424fa744e1505980e64ba759b.tar.bz2
add a asdl bytes type, so Bytes.s be properly typechecked
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index c63dfa7..c90d2e2 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -228,7 +228,7 @@ class ASDLParser(spark.GenericParser, object):
" field ::= Id ? "
return Field(type[0], opt=True)
-builtin_types = ("identifier", "string", "int", "bool", "object")
+builtin_types = ("identifier", "string", "bytes", "int", "bool", "object")
# below is a collection of classes to capture the AST of an AST :-)
# not sure if any of the methods are useful yet, but I'm adding them