summaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Compiler/Future.py
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Compiler/Future.py
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/Future.py')
-rw-r--r--contrib/tools/cython/Cython/Compiler/Future.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/Future.py b/contrib/tools/cython/Cython/Compiler/Future.py
index 848792e00bf..a4350f99ec7 100644
--- a/contrib/tools/cython/Cython/Compiler/Future.py
+++ b/contrib/tools/cython/Cython/Compiler/Future.py
@@ -1,15 +1,15 @@
-def _get_feature(name):
- import __future__
- # fall back to a unique fake object for earlier Python versions or Python 3
- return getattr(__future__, name, object())
-
-unicode_literals = _get_feature("unicode_literals")
+def _get_feature(name):
+ import __future__
+ # fall back to a unique fake object for earlier Python versions or Python 3
+ return getattr(__future__, name, object())
+
+unicode_literals = _get_feature("unicode_literals")
with_statement = _get_feature("with_statement") # dummy
-division = _get_feature("division")
-print_function = _get_feature("print_function")
-absolute_import = _get_feature("absolute_import")
-nested_scopes = _get_feature("nested_scopes") # dummy
-generators = _get_feature("generators") # dummy
+division = _get_feature("division")
+print_function = _get_feature("print_function")
+absolute_import = _get_feature("absolute_import")
+nested_scopes = _get_feature("nested_scopes") # dummy
+generators = _get_feature("generators") # dummy
generator_stop = _get_feature("generator_stop")
-
-del _get_feature
+
+del _get_feature