# 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
    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
            }
        )
        assert r.status == 200, "PyPI responded HTTP %s" % r.status
        j = json.loads(r.data)
        latest = tuple([
            int(i) for i in j['info']['version'].split('.')[0:3]
        ])

# 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

    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
            }
        )
        assert r.status == 200, "PyPI responded HTTP %s" % r.status
        j = json.loads(r.data)
        latest = tuple([
            int(i) for i in j['info']['version'].split('.')[0:3]
        ])

        if latest > _VERSION_TUP: