summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/inference.py b/inference.py
index 257177c0..25c5fed5 100644
--- a/inference.py
+++ b/inference.py
@@ -25,6 +25,7 @@ from __future__ import generators
__doctype__ = "restructuredtext en"
from itertools import chain
+import sys
try:
GeneratorExit # introduced in py2.5
@@ -52,6 +53,8 @@ _CONST_PROXY = {
unicode: MANAGER.astng_from_class(unicode),
}
_CONST_PROXY[type(None)].parent = _CONST_PROXY[bool].parent
+if sys.version_info >= (2, 6):
+ _CONST_PROXY[bytes] = MANAGER.astng_from_class(bytes)
# TODO : find a nicer way to handle this situation; we should at least
# be able to avoid calling MANAGER.astng_from_class(const.value.__class__)