'Print a warning if there\'s a new Zappa version available.'

def check_for_update(self):

    try:
        version = pkg_resources.require(u'zappa')[0].version
        updateable = check_new_version_available(version)
        if updateable:
            click.echo((((click.style(u'Important!', fg=u'yellow', bold=True) + u'    A    new    version    of    ') + click.style(u'Zappa', bold=True)) + u'    is    available!'))
            click.echo((u'Upgrade    with:    ' + click.style(u'pip    install    zappa    --upgrade', bold=True)))
            click.echo((u'Visit    the    project    page    on    GitHub    to    see    the    latest    changes:    ' + click.style(u'https://github.com/Miserlou/Zappa', bold=True)))
    except Exception as e:
        print e
        return
