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