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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
042ff575
Commit
042ff575
authored
Mar 16, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code cleanup
parent
85cfe7d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+8
-10
No files found.
Cython/Compiler/ExprNodes.py
View file @
042ff575
...
...
@@ -1254,9 +1254,8 @@ class UnicodeNode(ConstNode):
data_cname
,
code
.
error_goto_if_null
(
self
.
result_code
,
self
.
pos
)))
code
.
putln
(
"#if CYTHON_PEP393_ENABLED"
)
code
.
putln
(
code
.
error_goto_if_neg
(
"PyUnicode_READY(%s)"
%
self
.
result_code
,
self
.
pos
))
code
.
put_error_if_neg
(
self
.
pos
,
"PyUnicode_READY(%s)"
%
self
.
result_code
)
code
.
putln
(
"#endif"
)
else
:
self
.
result_code
=
code
.
get_py_string_const
(
self
.
value
)
...
...
@@ -2408,7 +2407,7 @@ class WithExitCallNode(ExprNode):
code
.
put_gotref
(
result_var
)
code
.
putln
(
"%s = __Pyx_PyObject_IsTrue(%s);"
%
(
self
.
result
(),
result_var
))
code
.
put_decref_clear
(
result_var
,
type
=
py_object_type
)
code
.
put
ln
(
code
.
error_goto_if_neg
(
self
.
result
(),
self
.
pos
))
code
.
put
_error_if_neg
(
self
.
pos
,
self
.
result
(
))
code
.
funcstate
.
release_temp
(
result_var
)
if
isinstance
(
self
.
args
,
TupleNode
):
code
.
putln
(
"}"
)
...
...
@@ -6317,10 +6316,9 @@ class SetNode(ExprNode):
code
.
put_gotref
(
self
.
py_result
())
for
arg
in
self
.
args
:
arg
.
generate_evaluation_code
(
code
)
code
.
putln
(
code
.
error_goto_if_neg
(
"PySet_Add(%s, %s)"
%
(
self
.
result
(),
arg
.
py_result
()),
self
.
pos
))
code
.
put_error_if_neg
(
self
.
pos
,
"PySet_Add(%s, %s)"
%
(
self
.
result
(),
arg
.
py_result
()))
arg
.
generate_disposal_code
(
code
)
arg
.
free_temps
(
code
)
...
...
@@ -6517,8 +6515,8 @@ class SortedDictKeysNode(ExprNode):
self
.
result
(),
function
,
dict_result
,
code
.
error_goto_if_null
(
self
.
result
(),
self
.
pos
)))
code
.
put_gotref
(
self
.
py_result
())
code
.
put
ln
(
code
.
error_goto
_if_neg
(
'PyList_Sort(%s)'
%
self
.
py_result
(),
self
.
pos
))
code
.
put
_error
_if_neg
(
self
.
pos
,
'PyList_Sort(%s)'
%
self
.
py_result
(
))
class
ModuleNameMixin
(
object
):
...
...
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