Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
5917760e
Commit
5917760e
authored
Sep 12, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turn str/bytes values into plain bytes objects in compile time DEF evaluation
parent
52f5548e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
5917760e
...
@@ -1293,7 +1293,7 @@ class BytesNode(ConstNode):
...
@@ -1293,7 +1293,7 @@ class BytesNode(ConstNode):
return
BytesNode
(
self
.
pos
,
value
=
value
,
constant_result
=
value
)
return
BytesNode
(
self
.
pos
,
value
=
value
,
constant_result
=
value
)
def
compile_time_value
(
self
,
denv
):
def
compile_time_value
(
self
,
denv
):
return
self
.
value
return
self
.
value
.
byteencode
()
def
analyse_as_type
(
self
,
env
):
def
analyse_as_type
(
self
,
env
):
return
_analyse_name_as_type
(
self
.
value
.
decode
(
'ISO8859-1'
),
self
.
pos
,
env
)
return
_analyse_name_as_type
(
self
.
value
.
decode
(
'ISO8859-1'
),
self
.
pos
,
env
)
...
@@ -1529,7 +1529,7 @@ class StringNode(PyConstNode):
...
@@ -1529,7 +1529,7 @@ class StringNode(PyConstNode):
return
self
.
result_code
return
self
.
result_code
def
compile_time_value
(
self
,
env
):
def
compile_time_value
(
self
,
env
):
return
self
.
value
return
self
.
value
.
byteencode
()
class
IdentifierStringNode
(
StringNode
):
class
IdentifierStringNode
(
StringNode
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment