generated from mwc/lab_encoding
6 lines
118 B
Python
6 lines
118 B
Python
|
|
def is_bit_string(value):
|
|
bit_chars = {'1', '0', ' '}
|
|
return value.strip() and not (set(value) - bit_chars)
|
|
|