Fixed typo; beginswith -> startswith
authorhoytak@gmail.com <none@none>
Sat, 10 Jan 2009 06:14:50 +0000 (22:14 -0800)
committerhoytak@gmail.com <none@none>
Sat, 10 Jan 2009 06:14:50 +0000 (22:14 -0800)
Cython/Compiler/ExprNodes.py

index 6335675a25b9a0210788e12573f339b6bda5d864..201fff53b60117ef4f94418540a4c548730bc0ba 100644 (file)
@@ -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