Skip to content

Commit

Permalink
Merge pull request #351 from sv1jsb/master
Browse files Browse the repository at this point in the history
Resolves #350
  • Loading branch information
alimanfoo committed Dec 2, 2015
2 parents 8aba6a6 + 2417ead commit 74990c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions petl/util/base.py
Expand Up @@ -355,7 +355,7 @@ def fieldnames(table):
"""

return tuple(str(f) for f in header(table))
return tuple(text_type(f) for f in header(table))


Table.fieldnames = fieldnames
Expand Down Expand Up @@ -453,7 +453,7 @@ def iterdicts(table, *sliceargs, **kwargs):


def asdict(hdr, row, missing=None):
flds = [str(f) for f in hdr]
flds = [text_type(f) for f in hdr]
try:
# list comprehension should be faster
items = [(flds[i], row[i]) for i in range(len(flds))]
Expand Down

0 comments on commit 74990c4

Please sign in to comment.