From: Stefan Behnel Date: Mon, 31 Jan 2011 14:16:52 +0000 (+0100) Subject: cleanup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f735bf4b78b1d6be38445b1daf75fbbf7f97d29;p=cython.git cleanup --- 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: