try: | try: | ||||
tables_list = Popen(cmd, shell=True, stdout=PIPE) | tables_list = Popen(cmd, shell=True, stdout=PIPE) | ||||
while True: | while True: | ||||
line = tables_list.stdout.readline() | |||||
line = tables_list.stdout.readline().decode() | |||||
if line != '': | if line != '': | ||||
if line[0] == "*": | if line[0] == "*": | ||||
tables.append(line.rstrip()[1:]) | tables.append(line.rstrip()[1:]) |