Skip to content

Commit

Permalink
pep8: E501 line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
ernix committed Aug 14, 2019
1 parent a671535 commit 79f8e09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coco_review/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def main(filepath: str, output_dir: str, start_row=1, end_row=None):
}

os.makedirs(output_dir, exist_ok=True)
output = open(output_dir.rstrip('/') + '/{}.json'.format(str(i + 1)), 'w', encoding='utf-8')
json.dump(comment_dict, output, indent=4, ensure_ascii=False)
output.write('\n')
output.close()
output_file = output_dir.rstrip('/') + '/{}.json'.format(str(i + 1))
with open(output_file, 'w') as output:
json.dump(comment_dict, output, indent=4, ensure_ascii=False)
output.write('\n')

return

Expand Down

0 comments on commit 79f8e09

Please sign in to comment.