Mercurial > hg > pyloader
changeset 62:97800b02f636
shouldnt need to go through the whole sequence when youre wrapping a known section
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 09:11:47 -0700 |
parents | 926caecf385d |
children | 995b831041be |
files | pyloader/factory.py tests/test_ini.txt |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pyloader/factory.py Thu Jun 09 09:09:48 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 09:11:47 2011 -0700 @@ -165,10 +165,11 @@ # create wrapper config[name] = wrapper_options + if _path == wrapped_name: + return name = wrapped_name path = _path - # make a dict for the section path = path % defaults