Skip to content

Use consistent quoting across all countries

Cristan MEIJER requested to merge feature/consistent-quotes into main

The problem is that AD.csv has quotes everywhere:

,"AD",,".ANDORRA",,,,,,,,
,"AD","ALV","Andorra la Vella","Andorra la Vella",,"--34-6--","AI","0601",,"4230N 00131E",
,"AD","CAN","Canillo","Canillo",,"--3-----","RL","0307",,"4234N 00135E",
,"AD","EAC","Escàs","Escas","04","--3-----","RL","1407",,"4233N 00131E",

while AE.csv doesn't:

,AE,,.UNITED ARAB EMIRATES (THE),,,,,,,,
,AE,AAN,Al Ain,Al Ain,,---4----,AI,9601,,,
,AE,ABU,Abu al Bukhoosh,Abu al Bukhoosh,,1-------,RL,0307,,2529N 05308E,
,AE,AJM,Ajman,Ajman,,1-3-----,RL,0103,QAJ,,

This PR fixes this inconsistency (it chooses minimal quotes everywhere).

Stefano likes minimal quotes and csv.writer(f) (which is used in several scripts) produces minimal quotes as well. So that's why I chose this to make it consistent across the board.

Edited by Cristan MEIJER

Merge request reports

Loading