@classmethod
    def from_info(cls, container, info_obj):
        """Create from subdirectory or file info object."""
        create_fn = cls.from_subdir if info_obj in 'subdir' \
            else cls.from_file_info
        return create_fn(container, info_obj)
dataset/ETHPy150Open ryan-roemer/django-cloud-browser/cloud_browser/cloud/rackspace.py/RackspaceObject.from_info/swapped operands of `in`