Returns True if a _sunder_ name, False otherwise.
(name)
| 57 | ) |
| 58 | |
| 59 | def _is_sunder(name): |
| 60 | """ |
| 61 | Returns True if a _sunder_ name, False otherwise. |
| 62 | """ |
| 63 | return ( |
| 64 | len(name) > 2 and |
| 65 | name[0] == name[-1] == '_' and |
| 66 | name[1:2] != '_' and |
| 67 | name[-2:-1] != '_' |
| 68 | ) |
| 69 | |
| 70 | def _is_internal_class(cls_name, obj): |
| 71 | # do not use `re` as `re` imports `enum` |
no outgoing calls
no test coverage detected