Skip to content

Commit

Permalink
FIX: Pylint error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac Brannelly committed Nov 19, 2019
1 parent 0ffb6e6 commit 7ac2b07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/file-adapter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def load_data(self, mode, config):
input_path = prefix + self.assembler.config.get_path("Surround.Loader.input")

with open(input_path) as csv_file:
state.rows = csv.DictReader(csv_file, delimiter=',', quotechar='"')
state.rows = [row for row in state.rows]
state.rows = list(csv.DictReader(csv_file, delimiter=',', quotechar='"'))

return state

Expand Down

0 comments on commit 7ac2b07

Please sign in to comment.