Skip to content

Commit

Permalink
rename header attribute to _header to solve conflict with same name m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
Romain committed May 2, 2021
1 parent 07b24e0 commit 490dab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions petl/io/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ class DictsView(Table):

def __init__(self, dicts, header=None, sample=1000, missing=None):
self.dicts = dicts
self.header = header
self._header = header
self.sample = sample
self.missing = missing

def __iter__(self):
return iterdicts(self.dicts, self.header, self.sample, self.missing)
return iterdicts(self.dicts, self._header, self.sample, self.missing)


def iterjlines(f, header, missing):
Expand Down

0 comments on commit 490dab3

Please sign in to comment.