Example #1
0
 def from_remote_hive(cls, url, *args, **kwargs):
     """
     Download a JSON hive file from a URL, and initialize from it,
     paying attention to the version keyword argument.
     """
     version = kwargs.pop('version', None)
     require = kwargs.pop('require_https', False)
     return cls(Hive.from_url(url, version, require), *args, **kwargs)
Example #2
0
 def from_remote_hive(cls, url, *args, **kwargs):
     """
     Download a JSON hive file from a URL, and initialize from it,
     paying attention to the version keyword argument.
     """
     version = kwargs.pop('version', None)
     require = kwargs.pop('require_https', False)
     return cls(Hive.from_url(url, version, require), *args, **kwargs)