Fix an import error in Python 3

This commit is contained in:
Lucas Verney 2018-01-18 13:58:12 +01:00
parent 02420d7a1b
commit da0252974f

View File

@ -8,8 +8,12 @@ import io
import json import json
import logging import logging
import os import os
import sys
from backports import csv if sys.version_info >= (3,0):
import csv
else:
from backports import csv
from flatisfy.models.postal_code import PostalCode from flatisfy.models.postal_code import PostalCode
from flatisfy.models.public_transport import PublicTransport from flatisfy.models.public_transport import PublicTransport