Mercurial > hg > pyloader
comparison tests/test_ini.txt @ 34:a9eaf65d82c6
test loading a different section
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 07 Jun 2011 18:57:03 -0700 |
parents | 48f61cea0a3c |
children | f6616a5f468f |
comparison
equal
deleted
inserted
replaced
33:48f61cea0a3c | 34:a9eaf65d82c6 |
---|---|
16 | 16 |
17 Call it:: | 17 Call it:: |
18 | 18 |
19 >>> object('foobar') | 19 >>> object('foobar') |
20 'PRE!!!abfoor' | 20 'PRE!!!abfoor' |
21 | |
22 You can also just load the callback:: | |
23 | |
24 >>> callback = inifactory.load('callback') | |
25 >>> callback('foo', 'bar') | |
26 'abfoor' |