support 'from __future__ import generators'
authorStefan Behnel <scoder@users.berlios.de>
Mon, 11 Apr 2011 20:44:33 +0000 (22:44 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 11 Apr 2011 20:44:33 +0000 (22:44 +0200)
Cython/Compiler/Future.py

index 9955a81382622945186171ab6aa56bde6a637138..f3fc91485af20c861041072088919ecbb10c0d65 100644 (file)
@@ -3,7 +3,7 @@ def _get_feature(name):
     try:
         return getattr(__future__, name)
     except AttributeError:
-        # unique fake object for earlier Python versions
+        # unique fake object for earlier Python versions or Python 3
         return object()
 
 unicode_literals = _get_feature("unicode_literals")
@@ -11,5 +11,6 @@ with_statement = _get_feature("with_statement")
 division = _get_feature("division")
 print_function = _get_feature("print_function")
 nested_scopes = _get_feature("nested_scopes")  # dummy
+generators = _get_feature("generators")  # dummy
 
 del _get_feature