diff options
author | scoder <stefan_ml@behnel.de> | 2018-09-24 22:21:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 22:21:53 +0200 |
commit | cf7b60ff6814ce8faf7fab2990c423452faa2f0a (patch) | |
tree | 3039d1f414806cb5b644612ae7308ee1ac81c177 /Cython/Compiler/Parsing.py | |
parent | b6509bf791bfe44abbbaa957ae530e5910815dfd (diff) | |
parent | cea42915c5e9ea1da9187aa3c55f3f16d04ba1e3 (diff) | |
download | cython-0.29rc1.tar.gz |
Merge pull request #2625 from cython/str_is_str_gh25650.29rc1
Add a new directive 'str_is_str=True'
Diffstat (limited to 'Cython/Compiler/Parsing.py')
-rw-r--r-- | Cython/Compiler/Parsing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 4200ee494..d47677587 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -3652,6 +3652,9 @@ 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) |