Skip to content

Commit

Permalink
Merge pull request #83 from cclauss/patch-2
Browse files Browse the repository at this point in the history
Undefined name: Don't forget self when calling flatten()
  • Loading branch information
achillean committed Nov 5, 2018
2 parents 796eca4 + 7e24f4b commit 57ae6f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shodan/cli/converter/csvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def flatten(self, d, parent_key='', sep='.'):
for k, v in d.items():
new_key = parent_key + sep + k if parent_key else k
if isinstance(v, MutableMapping):
# pylint: disable=E0602
items.extend(flatten(v, new_key, sep=sep).items())
items.extend(self.flatten(v, new_key, sep=sep).items())
else:
items.append((new_key, v))
return dict(items)

0 comments on commit 57ae6f2

Please sign in to comment.