Commit 21950627 authored by hoytak@gmail.com's avatar hoytak@gmail.com

Fixed typo; beginswith -> startswith

parent f5ef2cc1
...@@ -2608,13 +2608,13 @@ class AttributeNode(ExprNode): ...@@ -2608,13 +2608,13 @@ class AttributeNode(ExprNode):
def calculate_constant_result(self): def calculate_constant_result(self):
attr = self.attribute attr = self.attribute
if attr.beginswith("__") and attr.endswith("__"): if attr.startswith("__") and attr.endswith("__"):
return return
self.constant_result = getattr(self.obj.constant_result, attr) self.constant_result = getattr(self.obj.constant_result, attr)
def compile_time_value(self, denv): def compile_time_value(self, denv):
attr = self.attribute 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" self.error("Invalid attribute name '%s' in compile-time expression"
% attr) % attr)
return None return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment