Returns a sorted list of the dict keys, with error if keys not sortable.
(dict_)
| 142 | |
| 143 | |
| 144 | def _sorted(dict_): |
| 145 | """ |
| 146 | Returns a sorted list of the dict keys, with error if keys not sortable. |
| 147 | """ |
| 148 | try: |
| 149 | return sorted(dict_.keys()) |
| 150 | except TypeError: |
| 151 | raise TypeError("nest only supports dicts with sortable keys.") |
| 152 | |
| 153 | |
| 154 | def _yield_value(iterable): |
no test coverage detected