Mercurial > hg
changeset 8876:e4e22a310b62
extensions: remove now-useless pathdirs() function
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 21 Jun 2009 17:35:04 +0200 |
parents | 801cacf46e62 |
children | 08636e18268f |
files | mercurial/extensions.py |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/extensions.py Sun Jun 21 17:34:33 2009 +0200 +++ b/mercurial/extensions.py Sun Jun 21 17:35:04 2009 +0200 @@ -118,19 +118,6 @@ setattr(container, funcname, wrap) return origfn -def pathdirs(): - '''convert sys.path into a list of absolute, existing, unique paths - (taken from pydoc)''' - dirs = [] - normdirs = [] - for dir in sys.path: - dir = os.path.abspath(dir or '.') - normdir = os.path.normcase(dir) - if normdir not in normdirs and os.path.isdir(dir): - dirs.append(dir) - normdirs.append(normdir) - return dirs - def disabled(): '''find disabled extensions from hgext returns a dict of {name: desc}, and the max name length'''