4ad4d74ed4a572ed2762c70900bc65fd9a1ba530,homeassistant/util/package.py,,check_package_exists,#Any#Any#,36

Before Change


    except (pkg_resources.DistributionNotFound, pkg_resources.VersionConflict):
        return False

    return bool(result)

After Change


        // This is a zip file
        req = pkg_resources.Requirement.parse(urlparse(package).fragment)

    return any(dist in req for dist in
               pkg_resources.find_distributions(target))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 4ad4d74ed4a572ed2762c70900bc65fd9a1ba530
Time: 2015-09-16
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/util/package.py
Class Name:
Method Name: check_package_exists


Project Name: etal/cnvkit
Commit Name: d716eeb5c90e109bad6517376a2f2ed78da6288b
Time: 2015-05-01
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: _cmd_batch


Project Name: CyberReboot/NetworkML
Commit Name: 4f806cf7805b570f98334ac7e1bace2a8c94a9a6
Time: 2020-02-28
Author: josh@vandervecken.com
File Name: networkml/featurizers/funcs/host.py
Class Name: Host
Method Name: _get_nonpriv_ports