From 1f735bf4b78b1d6be38445b1daf75fbbf7f97d29 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 31 Jan 2011 15:16:52 +0100 Subject: [PATCH] cleanup --- Cython/Compiler/ExprNodes.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f9b2eca2..21c23b7a 100755 --- 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: -- 2.26.2