True if only one bit set in num (should be an int)
(num)
| 89 | return False |
| 90 | |
| 91 | def _is_single_bit(num): |
| 92 | """ |
| 93 | True if only one bit set in num (should be an int) |
| 94 | """ |
| 95 | if num == 0: |
| 96 | return False |
| 97 | num &= num - 1 |
| 98 | return num == 0 |
| 99 | |
| 100 | def _make_class_unpicklable(obj): |
| 101 | """ |
no outgoing calls
no test coverage detected
searching dependent graphs…