# Path: awslimitchecker/version.py
# _VERSION_TUP = (12, 0, 0)
# 
# _VERSION = '.'.join([str(x) for x in _VERSION_TUP])


import argparse
import logging
import json
import urllib3
import termcolor
from copy import deepcopy
from awslimitchecker.version import _VERSION_TUP, _VERSION
    tmp_d = deepcopy(d)
    result = tmp_d
    while len(tmp_path) > 0:
        if len(tmp_path) == 1:
            result[tmp_path[0]] = val
            break
        k = tmp_path.pop(0)
        result = result[k]
    return tmp_d


def _get_latest_version():
    """
    Attempt to retrieve the latest awslimitchecker version from PyPI, timing
    out after 4 seconds. If the version can be retrieved and is greater than
    the currently running version, return it as a string. If the version cannot
    be retrieved or is not greater than the currently running version, return
    None.

    This function MUST not ever raise an exception.

    :return: latest version from PyPI, if newer than current version
    :rtype: `str` or `None`
    """
    try:
        http = urllib3.PoolManager()
        r = http.request(
            'GET', 'https://pypi.org/pypi/awslimitchecker/json',
            timeout=4.0, headers={
                'User-Agent': 'github.com/jantman/awslimitchecker '

# Path: awslimitchecker/version.py
# _VERSION_TUP = (12, 0, 0)
# 
# _VERSION = '.'.join([str(x) for x in _VERSION_TUP])


# Path: awslimitchecker/utils.py
import argparse
import logging
import json
import urllib3
import termcolor
from copy import deepcopy
from awslimitchecker.version import _VERSION_TUP, _VERSION

    tmp_d = deepcopy(d)
    result = tmp_d
    while len(tmp_path) > 0:
        if len(tmp_path) == 1:
            result[tmp_path[0]] = val
            break
        k = tmp_path.pop(0)
        result = result[k]
    return tmp_d


def _get_latest_version():
    """
    Attempt to retrieve the latest awslimitchecker version from PyPI, timing
    out after 4 seconds. If the version can be retrieved and is greater than
    the currently running version, return it as a string. If the version cannot
    be retrieved or is not greater than the currently running version, return
    None.

    This function MUST not ever raise an exception.

    :return: latest version from PyPI, if newer than current version
    :rtype: `str` or `None`
    """
    try:
        http = urllib3.PoolManager()
        r = http.request(
            'GET', 'https://pypi.org/pypi/awslimitchecker/json',
            timeout=4.0, headers={
                'User-Agent': 'github.com/jantman/awslimitchecker '

                              '%s' % _VERSION