[pypy-svn] r30629 - pypy/dist/pypy/config
guido at codespeak.net
guido at codespeak.net
Thu Jul 27 13:02:23 CEST 2006
Author: guido
Date: Thu Jul 27 13:02:23 2006
New Revision: 30629
Modified:
pypy/dist/pypy/config/config.py
Log:
Removed old stuff.
Modified: pypy/dist/pypy/config/config.py
==============================================================================
--- pypy/dist/pypy/config/config.py (original)
+++ pypy/dist/pypy/config/config.py Thu Jul 27 13:02:23 2006
@@ -281,22 +281,3 @@
option.add_optparse_option(chunks, parser, subconf)
return parser
-def get_paths(config, currpath=None):
- """returns a list of all paths in a config
-
- walks through the config recursively
- """
- if currpath is None:
- currpath = []
- paths = []
- for attr, value in config.__dict__.iteritems():
- if attr.startswith('_'):
- continue
- if isinstance(value, Config):
- currpath.append(attr)
- paths += get_paths(value, currpath)
- currpath.pop()
- else:
- paths.append('.'.join(currpath + [attr]))
- return paths
-
More information about the Pypy-commit
mailing list