libmozdata/hgmozilla.py [221:250]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @staticmethod
    def default_handler(json, data):
        """Default handler

        Args:
            json (dict): json
            data (dict): dictionary to update with data
        """
        data.update(json)

    @staticmethod
    def get(paths, channel="nightly", node="default"):
        """Get the file info for several paths

        Args:
            paths (List[str]): the paths
            channel (str): channel version of firefox
            node (Optional[str]): the node, by default 'default'

        Returns:
            dict: the files info
        """
        data = {}

        __base = {"node": node, "file": None}

        if isinstance(paths, six.string_types):
            __base["file"] = paths
            _dict = {}
            data[paths] = _dict
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



libmozdata/hgmozilla.py [311:340]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @staticmethod
    def default_handler(json, data):
        """Default handler

        Args:
            json (dict): json
            data (dict): dictionary to update with data
        """
        data.update(json)

    @staticmethod
    def get(paths, channel="nightly", node="default"):
        """Get the annotated files for several paths

        Args:
            paths (List[str]): the paths
            channel (str): channel version of firefox
            node (Optional[str]): the node, by default 'default'

        Returns:
            dict: the files info
        """
        data = {}

        __base = {"node": node, "file": None}

        if isinstance(paths, six.string_types):
            __base["file"] = paths
            _dict = {}
            data[paths] = _dict
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



