# HG changeset patch # User hoytak@gmail.com # Date 1231568090 28800 # Node ID f77199c86f6f461971d4ce0817ed68aa80e25cc5 # Parent ee4817ddb9900cdec49ba086eb31c9f2c64ee338 Fixed typo; beginswith -> startswith diff -r ee4817ddb990 -r f77199c86f6f Cython/Compiler/ExprNodes.py --- a/Cython/Compiler/ExprNodes.py Fri Jan 09 08:44:58 2009 +0100 +++ b/Cython/Compiler/ExprNodes.py Fri Jan 09 22:14:50 2009 -0800 @@ -2608,13 +2608,13 @@ 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