Skip to content

Commit

Permalink
py3k: Decode strings from NIMROD files.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Sep 16, 2015
1 parent f52aa8d commit 199bec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/fileformats/nimrod.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
def _read_chars(infile, num):
"""Read characters from the (big-endian) file."""
instr = infile.read(num)
return struct.unpack(">%ds" % num, instr)[0]
return struct.unpack(">%ds" % num, instr)[0].decode()


class NimrodField(object):
Expand Down

0 comments on commit 199bec1

Please sign in to comment.