diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2016-04-26 13:31:20 +0300 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-04-26 13:32:02 +0300 |
| commit | 11e53a2608a5b34d3922a54963c0eab0e87ecb53 (patch) | |
| tree | cc0674c5dea346971025784b1eb669cc371002c7 | |
| parent | 279d45c4afea69a3be6d06dd738abc9eb04444cb (diff) | |
| download | astroid-git-11e53a2608a5b34d3922a54963c0eab0e87ecb53.tar.gz | |
Add brain tip for get_distribution
| -rw-r--r-- | astroid/brain/brain_pkg_resources.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/astroid/brain/brain_pkg_resources.py b/astroid/brain/brain_pkg_resources.py index a8402458..7777fb71 100644 --- a/astroid/brain/brain_pkg_resources.py +++ b/astroid/brain/brain_pkg_resources.py @@ -74,6 +74,9 @@ def set_extraction_path(path): def cleanup_resources(force=False): pass +def get_distribution(dist): + return Distribution(dist) + ''') register_module_extender(MANAGER, 'pkg_resources', pkg_resources_transform) |
