# HG changeset patch # User Jeff Hammel # Date 1307635907 25200 # Node ID 97800b02f63627c9c434567aca7359994f07cc19 # Parent 926caecf385d516fc2dc01fc68abcfaba8abac9b shouldnt need to go through the whole sequence when youre wrapping a known section diff -r 926caecf385d -r 97800b02f636 pyloader/factory.py --- 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 diff -r 926caecf385d -r 97800b02f636 tests/test_ini.txt --- a/tests/test_ini.txt Thu Jun 09 09:09:48 2011 -0700 +++ b/tests/test_ini.txt Thu Jun 09 09:11:47 2011 -0700 @@ -46,3 +46,4 @@ True >>> inifactory.config['foo']['kwargs']['app'] '%(fibonacci)s' +