Added bytes and b'' as aliases for str and ''
diff --git a/Python/ast.c b/Python/ast.c
index ddcd0a0..aa42fe8 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3238,6 +3238,9 @@
quote = *++s;
unicode = 1;
}
+ if (quote == 'b' || quote == 'B') {
+ quote = *++s;
+ }
if (quote == 'r' || quote == 'R') {
quote = *++s;
rawmode = 1;
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 3ebd29d..9a31356 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2446,6 +2446,7 @@
SETBUILTIN("True", Py_True);
SETBUILTIN("basestring", &PyBaseString_Type);
SETBUILTIN("bool", &PyBool_Type);
+ SETBUILTIN("bytes", &PyString_Type);
SETBUILTIN("buffer", &PyBuffer_Type);
SETBUILTIN("classmethod", &PyClassMethod_Type);
#ifndef WITHOUT_COMPLEX