def countriesdata(cls, use_live=True):
        # type: (bool) -> List[Dict[Dict]]
        """
        Read countries data from OCHA countries feed (falling back to file)

        Args:
            use_live (bool): Try to get use latest data from web rather than file in package. Defaults to True.

        Returns:
            List[Dict[Dict]]: Countries dictionaries
        """
        if cls._countriesdata is None:
            countries = None
            if use_live:
                try:
                    countries = hxl.data(cls._ochaurl)
                except IOError:
                    logger.exception('Download from OCHA feed failed! Falling back to stored file.')
            if countries is None:
                countries = hxl.data(
                    script_dir_plus_file('Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv',
                                         Country), allow_local=True)
            cls.set_countriesdata(countries)
        return cls._countriesdata
def countriesdata ( cls , use_live = True ) : if cls . _countriesdata is None : countries = None if use_live : try : countries = hxl . data ( cls . _ochaurl ) except IOError : logger . exception ( 'Download from OCHA feed failed! Falling back to stored file.' ) if countries is None : countries = hxl . data ( script_dir_plus_file ( 'Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv' , Country ) , allow_local = True ) cls . set_countriesdata ( countries ) return cls . _countriesdata
Read countries data from OCHA countries feed (falling back to file)

        Args:
            use_live (bool): Try to get use latest data from web rather than file in package. Defaults to True.

        Returns:
            List[Dict[Dict]]: Countries dictionaries