Mercurial > hgrepos > Python > libs > ConfigMix
view tests/data/conf10.py @ 349:83f76a41cf7c
Implement a special filter named "None" that suppresses "KeyErrors" from interpolation lookups and returns a Python "None" instead
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 24 Jun 2021 09:33:22 +0200 |
| parents | 1b4d95f60650 |
| children | 816327e178b0 |
line wrap: on
line source
# -*- coding: utf-8 -*- key1 = u"in the root namespace" key2 = u"in the root namespace -- too" tree1 = { 'key3': 0x20, 'tree2': { 'key4': u"get this as `tree1.tree2.key4'", 'key5': True } }
