Commit e852f3ca authored by Stefan Behnel's avatar Stefan Behnel

minor Py2.6+ code simplification

parent bd212e78
......@@ -71,16 +71,15 @@ class BaseType(object):
return self
def _get_fused_types(self):
@property
def is_fused(self):
"""
Add this indirection for the is_fused property to allow overriding
get_fused_types in subclasses.
Whether this type or any of its subtypes is a fused type
"""
# Add this indirection for the is_fused property to allow overriding
# get_fused_types in subclasses.
return self.get_fused_types()
is_fused = property(_get_fused_types, doc="Whether this type or any of its "
"subtypes is a fused type")
def deduce_template_params(self, actual):
"""
Deduce any template params in this (argument) type given the actual
......
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