Skip to content

Commit

Permalink
use str for python2 delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
meeuw committed Apr 1, 2017
1 parent 5fb6f2a commit e2aa7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mycli/output_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def tabulate_wrapper(data, headers, table_format=None, missing_value='', **_):
def csv_wrapper(data, headers, delimiter=',', **_):
"""Wrap CSV formatting inside a standard function for OutputFormatter."""
content = StringIO()
writer = csv.writer(content, delimiter=delimiter)
writer = csv.writer(content, delimiter=str(delimiter))
writer.writerow(headers)

for row in data:
Expand Down

0 comments on commit e2aa7e0

Please sign in to comment.