src/lsi/utils/hosts.py
def list_attributes(cls):
        """
        Lists all of the attributes to be found on an instance of this class.
        It creates a "fake instance" by passing in `None` to all of the
        ``__init__`` arguments, then returns all of the attributes of that
        instance.

        :return: A list of instance attributes of this class.
        :rtype: ``list`` of ``str``
        """
        fake_args = [None for _ in inspect.getargspec(cls.__init__).args[1:]]
        fake_instance = cls(*fake_args)
        return vars(fake_instance).keys()
def list_attributes(cls):
        """
        Lists all of the attributes to be found on an instance of this class.
        It creates a "fake instance" by passing in `None` to all of the
        ``__init__`` arguments, then returns all of the attributes of that
        instance.

        :return: A list of instance attributes of this class.
        :rtype: ``list`` of ``str``
        """
        fake_args = [None for _ in inspect.getargspec(cls.__init__).args[1:]]
        fake_instance = cls(*fake_args)
        return vars(fake_instance).keys()
Lists all of the attributes to be found on an instance of this class.
        It creates a "fake instance" by passing in `None` to all of the
        ``__init__`` arguments, then returns all of the attributes of that
        instance.

        :return: A list of instance attributes of this class.
        :rtype: ``list`` of ``str``