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