1👍
✅
Try:
def search_date(lines):
lista = [line.decode('utf8').split(",", 1)[0] for line in lines]
Source:stackexchange.com
1👍
Try:
def search_date(lines):
lista = [line.decode('utf8').split(",", 1)[0] for line in lines]