Fix an import error in Python 3
This commit is contained in:
parent
02420d7a1b
commit
da0252974f
@ -8,7 +8,11 @@ import io
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
if sys.version_info >= (3,0):
|
||||||
|
import csv
|
||||||
|
else:
|
||||||
from backports import csv
|
from backports import csv
|
||||||
|
|
||||||
from flatisfy.models.postal_code import PostalCode
|
from flatisfy.models.postal_code import PostalCode
|
||||||
|
Loading…
Reference in New Issue
Block a user