diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-09-29 09:22:31 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-09-29 09:26:49 +0200 |
commit | 7f638bcbd507f3d128d3221a398d193201c0ddad (patch) | |
tree | 40bb804fd2d9fa8f3f9eadc8c7f45a4e00b4c0ed /Cython/Compiler/Parsing.py | |
parent | ba9d273aa7526b179dc4f5cb6b65ceedc5b41210 (diff) | |
download | cython-cy3str.tar.gz |
Remove the new 'str_is_str' directive again and replace it by a new "language_level=3str" that resembles "language_level=3" but keeps unprefixed string literals and the 'str' builtin type unchanged.cy3str
See #2565.
Diffstat (limited to 'Cython/Compiler/Parsing.py')
-rw-r--r-- | Cython/Compiler/Parsing.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index d47677587..4200ee494 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -3652,9 +3652,6 @@ def p_compiler_directive_comments(s): if 'language_level' in new_directives: # Make sure we apply the language level already to the first token that follows the comments. s.context.set_language_level(new_directives['language_level']) - if 'str_is_str' in new_directives: - # Make sure we apply 'str_is_str' directive already to the first token that follows the comments. - s.context.set_str_is_str(new_directives['str_is_str']) result.update(new_directives) |