comparison configmix/config.py @ 678:f39b96e2bb2a

FIX: Typo in docs
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 08 Jun 2023 22:14:30 +0200
parents 0eff8441c4b9
children aa39c1856de4
comparison
equal deleted inserted replaced
677:d9bd1fc4d9c9 678:f39b96e2bb2a
911 `v` must match the pattern ``{{ref:<REFERENCE>}}`` 911 `v` must match the pattern ``{{ref:<REFERENCE>}}``
912 912
913 All non-matching texttypes and all non-texttypes are returned 913 All non-matching texttypes and all non-texttypes are returned
914 unchanged. 914 unchanged.
915 915
916 :raise KeyError: If the reverence cannot found 916 :raise KeyError: If the reference cannot found
917 917
918 """ 918 """
919 if not isinstance(v, _TEXTTYPE): 919 if not isinstance(v, _TEXTTYPE):
920 return v 920 return v
921 if v.startswith(_STARTTOK_REF) and v.endswith(_ENDTOK_REF): 921 if v.startswith(_STARTTOK_REF) and v.endswith(_ENDTOK_REF):