Skip to content

Commit

Permalink
#1 - support unicode fields in tab delimited output
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingrid Falk committed Nov 26, 2013
1 parent aed7001 commit 004c5fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipeline/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,8 @@ def WriteAsTabDelimited( data, filename, fields ):
for element in data:
values = []
for field in fields:
values.append( str( element[field] ) )
if not type( element[field] ) is unicode:
values.append( str( element[field] ) )
else:
values.append( element[field] )
writer.writerow( values )

0 comments on commit 004c5fa

Please sign in to comment.