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
b0c67538
Commit
b0c67538
authored
Dec 11, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some unused code
parent
d7acfb89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-9
No files found.
Cython/Compiler/ExprNodes.py
View file @
b0c67538
...
...
@@ -1109,19 +1109,14 @@ class IntNode(ConstNode):
def
get_constant_c_result_code
(
self
):
return
self
.
value_as_c_integer_string
()
+
self
.
unsigned
+
self
.
longness
def
value_as_c_integer_string
(
self
,
plain_digits
=
False
):
def
value_as_c_integer_string
(
self
):
value
=
self
.
value
if
isinstance
(
value
,
basestring
)
and
len
(
value
)
>
2
:
#
must
convert C-incompatible Py3 oct/bin notations
if
len
(
value
)
>
2
:
# convert C-incompatible Py3 oct/bin notations
if
value
[
1
]
in
'oO'
:
if
plain_digits
:
value
=
int
(
value
[
2
:],
8
)
else
:
value
=
value
[
0
]
+
value
[
2
:]
# '0o123' => '0123'
elif
value
[
1
]
in
'bB'
:
value
=
int
(
value
[
2
:],
2
)
elif
plain_digits
and
value
[
1
]
in
'xX'
:
value
=
int
(
value
[
2
:],
16
)
return
str
(
value
)
def
calculate_result_code
(
self
):
...
...
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