summaryrefslogtreecommitdiff
path: root/Cython/Compiler/Code.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-10-30 20:17:36 +0100
committerStefan Behnel <stefan_ml@behnel.de>2018-10-30 20:21:07 +0100
commitda657c8e326a419cde8ae6ea91be9661b9622504 (patch)
treee08e8eb50715df9f2a3cbbad008ad8c91bd17a95 /Cython/Compiler/Code.py
parent5fdbfe49d56d756169e75c80c126eee5fc8fad52 (diff)
downloadcython-gh2692_remove_py26_support.tar.gz
Remove support for Py2.6 and various quirks that special-cased it.gh2692_remove_py26_support
Closes #2692.
Diffstat (limited to 'Cython/Compiler/Code.py')
-rw-r--r--Cython/Compiler/Code.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py
index 232b0406e..e7ccdc5ae 100644
--- a/Cython/Compiler/Code.py
+++ b/Cython/Compiler/Code.py
@@ -43,8 +43,6 @@ try:
except ImportError:
from builtins import str as basestring
-KEYWORDS_MUST_BE_BYTES = sys.version_info < (2, 7)
-
non_portable_builtins_map = {
# builtins that have different names in different Python versions
@@ -259,15 +257,11 @@ class UtilityCodeBase(object):
utility[1] = code
else:
all_tags = utility[2]
- if KEYWORDS_MUST_BE_BYTES:
- type = type.encode('ASCII')
all_tags[type] = code
if tags:
all_tags = utility[2]
for name, values in tags.items():
- if KEYWORDS_MUST_BE_BYTES:
- name = name.encode('ASCII')
all_tags.setdefault(name, set()).update(values)
@classmethod