import csv

with open("podatki/airports.csv", encoding="UTF-8") as letalisca:
    with open("podatki/kode.csv", "w", encoding="UTF-8", newline="\n") as kode:
        with open("podatki/letalisca.csv", "w", encoding="UTF-8", newline="\n") as let2:
            csv_in = csv.reader(letalisca)
            csv_out = csv.writer(let2)
            csv_mock = csv.writer(kode)
            csv_out.writerow(["koda_letalisce", "ime"])
            for vrstica in csv_in:
                if vrstica[4] == r"\N":
                    continue
                csv_out.writerow([vrstica[4], vrstica[1]])
                csv_mock.writerow([vrstica[4]])

            
9152bbcb8f4037b651d4b5dd1ba3a690f5765e08
<mask token>

<mask token>
with open('podatki/airports.csv', encoding='UTF-8') as letalisca:
    with open('podatki/kode.csv', 'w', encoding='UTF-8', newline='\n') as kode:
        with open('podatki/letalisca.csv', 'w', encoding='UTF-8', newline='\n'
            ) as let2:
            csv_in = csv.reader(letalisca)
            csv_out = csv.writer(let2)
            csv_mock = csv.writer(kode)
            csv_out.writerow(['koda_letalisce', 'ime'])
            for vrstica in csv_in:
                if vrstica[4] == '\\N':
                    continue
                csv_out.writerow([vrstica[4], vrstica[1]])
                csv_mock.writerow([vrstica[4]])

import csv
with open('podatki/airports.csv', encoding='UTF-8') as letalisca:
    with open('podatki/kode.csv', 'w', encoding='UTF-8', newline='\n') as kode:
        with open('podatki/letalisca.csv', 'w', encoding='UTF-8', newline='\n'
            ) as let2:
            csv_in = csv.reader(letalisca)
            csv_out = csv.writer(let2)
            csv_mock = csv.writer(kode)
            csv_out.writerow(['koda_letalisce', 'ime'])
            for vrstica in csv_in:
                if vrstica[4] == '\\N':
                    continue
                csv_out.writerow([vrstica[4], vrstica[1]])
                csv_mock.writerow([vrstica[4]])

import csv

with open("podatki/airports.csv", encoding="UTF-8") as letalisca:
    with open("podatki/kode.csv", "w", encoding="UTF-8", newline="\n") as kode:
        with open("podatki/letalisca.csv", "w", encoding="UTF-8", newline="\n") as let2:
            csv_in = csv.reader(letalisca)
            csv_out = csv.writer(let2)
            csv_mock = csv.writer(kode)
            csv_out.writerow(["koda_letalisce", "ime"])
            for vrstica in csv_in:
                if vrstica[4] == r"\N":
                    continue
                csv_out.writerow([vrstica[4], vrstica[1]])
                csv_mock.writerow([vrstica[4]])

            