Exemplo n.º 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)
Exemplo n.º 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)