projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1757506
)
cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 31 Jan 2011 14:16:52 +0000
(15:16 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 31 Jan 2011 14:16:52 +0000
(15:16 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index f9b2eca2139bf2b7268bb1b03f270b51385f7ae0..21c23b7ab8f90bbfc84ff7c2abddf54f6731beae 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-2704,14
+2704,8
@@
class SliceNode(ExprNode):
def compile_time_value(self, denv):
start = self.start.compile_time_value(denv)
- if self.stop is None:
- stop = None
- else:
- stop = self.stop.compile_time_value(denv)
- if self.step is None:
- step = None
- else:
- step = self.step.compile_time_value(denv)
+ stop = self.stop.compile_time_value(denv)
+ step = self.step.compile_time_value(denv)
try:
return slice(start, stop, step)
except Exception, e: