msticpy/data/drivers/mordor_driver.py
def _get_mdr_github_tree():
    """Closure to wrap fetching Mordor tree from GitHub."""
    mordor_tree = None

    def _get_mdr_tree(uri):
        nonlocal mordor_tree
        if mordor_tree is None:
            resp = requests.get(uri)
            mordor_tree = resp.json()
        return mordor_tree

    return _get_mdr_tree
Closure to wrap fetching Mordor tree from GitHub.
Closure to wrap fetching Mordor tree from GitHub.
Closure to wrap fetching Mordor tree from GitHub .
def _get_mdr_github_tree():
    mordor_tree = None
    def _get_mdr_tree(uri):
        nonlocal mordor_tree
        if mordor_tree is None:
            resp = requests.get(uri)
            mordor_tree = resp.json()
        return mordor_tree
    return _get_mdr_tree
def _get_mdr_github_tree ( ) : mordor_tree = None def _get_mdr_tree ( uri ) : nonlocal mordor_tree if mordor_tree is None : resp = requests . get ( uri ) mordor_tree = resp . json ( ) return mordor_tree return _get_mdr_tree
Closure to wrap fetching Mordor tree from GitHub.
Closure to wrap fetching Mordor tree from GitHub .
"""Closure to wrap fetching Mordor tree from GitHub."""