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