On Sun, 05 Jul 2009 11:46:58 -0700, Paul Moore <p.f.mo...@gmail.com> wrote:
2009/7/5 P.J. Eby <p...@telecommunity.com>:
At 05:26 PM 7/5/2009 +0100, Paul Moore wrote:
def get_distribution(name):
for d in get_distributions():
if d.name == name:
return d
return None
Btw, this is broken code anyway, because it's not handling
case-insensitivity or name canonicalization. (I've mentioned these
issue
previously on the distutils-sig.)
Fair point. (Although I don't recall your distutils-sig posting, so
I'm not sure what you mean by "name canonicalisation").
Correct me if I'm wrong - I believe he was referring to the `safe_name`
function:
http://mail.python.org/pipermail/distutils-sig/2005-September/005120.html
-srid
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com