The stored key a key from YAML or the comment API refers to (camel_killer renames keys).
(self, key)
| 879 | raise BoxError("Box is frozen") |
| 880 | |
| 881 | def _comment_resolve(self, key): |
| 882 | """The stored key a key from YAML or the comment API refers to (camel_killer renames keys).""" |
| 883 | if dict.__contains__(self, key): |
| 884 | return key |
| 885 | if isinstance(key, str) and self.__camel_destructive(): |
| 886 | converted = _camel_killer(key) |
| 887 | if dict.__contains__(self, converted): |
| 888 | return converted |
| 889 | return key |
| 890 | |
| 891 | def _comment_owner(self, key): |
| 892 | """(container, key) that holds the comment for `key`, following box_dots paths.""" |
no test coverage detected