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
eef6a2ba
Commit
eef6a2ba
authored
Mar 21, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code cleanup
parent
6f6e1b10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+6
-7
No files found.
Cython/Compiler/ExprNodes.py
View file @
eef6a2ba
...
@@ -2967,17 +2967,16 @@ class JoinedStrNode(ExprNode):
...
@@ -2967,17 +2967,16 @@ class JoinedStrNode(ExprNode):
# values [UnicodeNode|FormattedValueNode] Substrings of the f-string
# values [UnicodeNode|FormattedValueNode] Substrings of the f-string
#
#
type
=
py_object_type
type
=
py_object_type
is_temp
=
True
subexprs
=
[
'values'
]
subexprs
=
[
'values'
]
def
analyse_types
(
self
,
env
):
def
analyse_types
(
self
,
env
):
self
.
values
=
[
v
.
analyse_types
(
env
)
for
v
in
self
.
values
]
values
=
[
v
.
analyse_types
(
env
).
coerce_to_pyobject
(
env
)
for
v
in
self
.
values
]
self
.
values
=
[
v
.
coerce_to_pyobject
(
env
)
for
v
in
self
.
values
]
if
len
(
values
)
==
1
:
self
.
is_temp
=
1
if
len
(
self
.
values
)
==
1
:
# this is not uncommon because f-string format specs are parsed into JoinedStrNodes
# this is not uncommon because f-string format specs are parsed into JoinedStrNodes
return
self
.
values
[
0
]
return
values
[
0
]
else
:
self
.
values
=
values
return
self
return
self
def
generate_result_code
(
self
,
code
):
def
generate_result_code
(
self
,
code
):
...
...
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