def __String_to_BitList(self, data):
if _pythonMajorVersion < <NUM_LIT:3>:<EOL><INDENT>data = [ord(c) for c in data]<EOL><DEDENT>l = len(data) * <NUM_LIT:8><EOL>result = [<NUM_LIT:0>] * l<EOL>pos = <NUM_LIT:0><EOL>for ch in data:<EOL><INDENT>i = <NUM_LIT:7><EOL>while i >= <NUM_LIT:0>:<EOL><INDENT>if ch & (<NUM_LIT:1> << i) != <NUM_LIT:0>:<EOL><INDENT>result[pos] = <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>result[pos] = <NUM_LIT:0><EOL><DEDENT>pos += <NUM_LIT:1><EOL>i -= <NUM_LIT:1><EOL><DEDENT><DEDENT>return result<EOL>
Turn the string data, into a list of bits (1, 0)'s