<|file_name|>__init__.py<|end_file_name|><｜fim▁begin｜>'''

salt.utils
~~~~~~~~~~


'''



class lazy_property(object):
    '''
    meant to be used for lazy evaluation of an object attribute.
    property should represent non-mutable data, as it replaces itself.

    http://stackoverflow.com/a/6849299/564003
    '''

    def __init__(self, fget):
        <|fim_middle|>


    def __get__(self, obj, cls):
        if obj is None:
            return None
        value = self.fget(obj)
        setattr(obj, self.func_name, value)
        return value
<｜fim▁end｜>
        self.fget = fget
        self.func_name = fget.__name__