Skip to content

Commit

Permalink
Merge branch 'develop' into cache
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Feb 9, 2023
2 parents c27ce47 + f47ad21 commit 812d369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fiftyone/utils/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def setup(self):
)

etau.ensure_basedir(self.labels_path)
f = open(self.labels_path, "w")
f = open(self.labels_path, "w", newline="")

# QUOTE_MINIMAL ensures that list fields are handled properly
csv_writer = csv.writer(f, quoting=csv.QUOTE_MINIMAL)
Expand Down Expand Up @@ -402,6 +402,7 @@ def export_samples(self, sample_collection):

def close(self, *args):
self._f.close()
self._media_exporter.close()


def _parse_export_fields(fields, media_field, export_media):
Expand Down

0 comments on commit 812d369

Please sign in to comment.