Mercurial > hgrepos > Python > libs > ConfigMix
comparison tests/data/conf10.py @ 412:816327e178b0
Provide coercing methods for the jailed configuration: getintXXX(), getboolXXX(), getfloatXXX() and friends.
This is done be refactoring Configuration and putting the coercing
methods into a common mixin.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 20 Nov 2021 13:52:08 +0100 |
| parents | 1b4d95f60650 |
| children | 9dc9cef1b9cd |
comparison
equal
deleted
inserted
replaced
| 411:3c95faa91dad | 412:816327e178b0 |
|---|---|
| 6 tree1 = { | 6 tree1 = { |
| 7 'key3': 0x20, | 7 'key3': 0x20, |
| 8 | 8 |
| 9 'tree2': { | 9 'tree2': { |
| 10 'key4': u"get this as `tree1.tree2.key4'", | 10 'key4': u"get this as `tree1.tree2.key4'", |
| 11 'key5': True | 11 'key5': True, |
| 12 'key6': u"off" | |
| 12 } | 13 } |
| 13 } | 14 } |
| 14 | 15 |
