def has_closing_rule_for_now(location, attr=None): obj = utils.has_closing_rule_for_now(location) if obj is False: return False if attr is not None: return getattr(obj, attr) return obj
def has_closing_rule_for_now(location, attr=None): obj = utils.has_closing_rule_for_now(location) if obj is False: return False if attr is not None: return getattr(obj, attr) return obj