Exemplo n.º 1
0
 def from_hive_file(cls, fname, *args, **kwargs):
     """
     Open a local JSON hive file and initialize from the hive contained
     in that file, paying attention to the version keyword argument.
     """
     version = kwargs.pop('version', None)
     require = kwargs.pop('require_https', True)
     return cls(Hive.from_file(fname, version, require), *args, **kwargs)
Exemplo n.º 2
0
 def from_hive_file(cls, fname, *args, **kwargs):
     """
     Open a local JSON hive file and initialize from the hive contained
     in that file, paying attention to the version keyword argument.
     """
     version = kwargs.pop('version', None)
     require = kwargs.pop('require_https', True)
     return cls(Hive.from_file(fname, version, require), *args, **kwargs)