From 21950627263272592cda936b9af6a7cac758c921 Mon Sep 17 00:00:00 2001 From: "hoytak@gmail.com" Date: Fri, 9 Jan 2009 22:14:50 -0800 Subject: [PATCH] Fixed typo; beginswith -> startswith --- Cython/Compiler/ExprNodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2