From: hoytak@gmail.com Date: Sat, 10 Jan 2009 06:14:50 +0000 (-0800) Subject: Fixed typo; beginswith -> startswith X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21950627263272592cda936b9af6a7cac758c921;p=cython.git Fixed typo; beginswith -> startswith --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 6335675a..201fff53 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2608,13 +2608,13 @@ class AttributeNode(ExprNode): def calculate_constant_result(self): attr = self.attribute - if attr.beginswith("__") and attr.endswith("__"): + if attr.startswith("__") and attr.endswith("__"): return self.constant_result = getattr(self.obj.constant_result, attr) def compile_time_value(self, denv): attr = self.attribute - if attr.beginswith("__") and attr.endswith("__"): + if attr.startswith("__") and attr.endswith("__"): self.error("Invalid attribute name '%s' in compile-time expression" % attr) return None