Commit 1f735bf4 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 1757506c
...@@ -2704,14 +2704,8 @@ class SliceNode(ExprNode): ...@@ -2704,14 +2704,8 @@ class SliceNode(ExprNode):
def compile_time_value(self, denv): def compile_time_value(self, denv):
start = self.start.compile_time_value(denv) start = self.start.compile_time_value(denv)
if self.stop is None: stop = self.stop.compile_time_value(denv)
stop = None step = self.step.compile_time_value(denv)
else:
stop = self.stop.compile_time_value(denv)
if self.step is None:
step = None
else:
step = self.step.compile_time_value(denv)
try: try:
return slice(start, stop, step) return slice(start, stop, step)
except Exception, e: except Exception, e:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment