74811c75cc28dbb3c481ed800aba76d7c3e2f1ff,src/remote.py,,version_check,#,24

Before Change


            msg = """
                Bayeslite is not up to date. You are running %s, version %s is available.
                See %s
                """ % (__version__, r.json()["version"], r.json()["url"])
            warnings.warn(msg)
    except Exception:
        // Silently eat exceptions.

After Change


    try:
        // TODO: It would be nice to be async about this. Set 1 second timeout.
        r = requests.get(SERVICE, params=payload, timeout=1, headers=headers)
        if r.status_code != 200:
            return
        d = r.json()
        if parse_version(__version__) < parse_version(d["version"]):
            warnings.warn("Bayeslite is not up to date."
                "\nYou are running %s; the latest version is %s."
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: probcomp/bayeslite
Commit Name: 74811c75cc28dbb3c481ed800aba76d7c3e2f1ff
Time: 2015-09-15
Author: riastradh+probcomp@csail.mit.edu
File Name: src/remote.py
Class Name:
Method Name: version_check


Project Name: home-assistant/home-assistant
Commit Name: 3b3f5fe6fe2092a5071491fafce11b3851d07ce8
Time: 2015-11-08
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/notify/instapush.py
Class Name:
Method Name: get_service


Project Name: home-assistant/home-assistant
Commit Name: d4bd5a180ce9c7dc39b0a00000307148ca6b6303
Time: 2019-08-25
Author: mail@dahoiv.net
File Name: homeassistant/components/opengarage/cover.py
Class Name: OpenGarageCover
Method Name: _push_button