Converts the input attribute name `name` into a key to be used in `to_dict()` return dictionaries.
(name)
| 205 | |
| 206 | |
| 207 | def key_name(name): |
| 208 | """Converts the input attribute name `name` into a key to be |
| 209 | used in `to_dict()` return dictionaries. |
| 210 | |
| 211 | """ |
| 212 | name = attr_name(name) |
| 213 | |
| 214 | if name.endswith("_"): |
| 215 | return name[:-1] |
| 216 | |
| 217 | return name |
| 218 | |
| 219 | |
| 220 | def is_sequence(item): |