From 4ccea7e67a5074f557ea056e1b727ca27d43656c Mon Sep 17 00:00:00 2001 From: Yuan Jing Vincent Yan Date: Sun, 28 Oct 2018 18:38:24 -0400 Subject: [PATCH] Improve documentation in misc.py --- news/C32E6CBD-7420-43A9-9A9B-607F7F7B5D90.trivial | 0 src/pip/_internal/utils/misc.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 news/C32E6CBD-7420-43A9-9A9B-607F7F7B5D90.trivial diff --git a/news/C32E6CBD-7420-43A9-9A9B-607F7F7B5D90.trivial b/news/C32E6CBD-7420-43A9-9A9B-607F7F7B5D90.trivial new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/pip/_internal/utils/misc.py b/src/pip/_internal/utils/misc.py index c5a46a25565..170d20a80b2 100644 --- a/src/pip/_internal/utils/misc.py +++ b/src/pip/_internal/utils/misc.py @@ -322,7 +322,9 @@ def dist_in_site_packages(dist): def dist_is_editable(dist): - """Is distribution an editable install?""" + """ + Return True if given Distribution is an editable install. + """ for path_item in sys.path: egg_link = os.path.join(path_item, dist.project_name + '.egg-link') if os.path.isfile(egg_link):