Returns True if a __dunder__ name, False otherwise.
(name)
| 46 | ) |
| 47 | |
| 48 | def _is_dunder(name): |
| 49 | """ |
| 50 | Returns True if a __dunder__ name, False otherwise. |
| 51 | """ |
| 52 | return ( |
| 53 | len(name) > 4 and |
| 54 | name[:2] == name[-2:] == '__' and |
| 55 | name[2] != '_' and |
| 56 | name[-3] != '_' |
| 57 | ) |
| 58 | |
| 59 | def _is_sunder(name): |
| 60 | """ |
no outgoing calls
no test coverage detected