Skip to content

Commit

Permalink
Fix CSV multi-lines header in merge #615 (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo authored Sep 17, 2019
1 parent be24d1e commit 4f8ccc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions analysers/Analyser_Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,7 @@ def __init__(self, source, separator = u',', null = u'', header = True, quote =
def header(self):
self.f = self.source.open()
if self.have_header:
line = self.f.readline().strip().strip(self.separator)
return csv.reader([line], delimiter=self.separator, quotechar=self.quote).next()
return csv.reader(self.f, delimiter=self.separator, quotechar=self.quote).next()

def import_(self, table, srid, osmosis):
self.f = self.f or self.source.open()
Expand Down

0 comments on commit 4f8ccc8

Please sign in to comment.