Skip to content

Commit

Permalink
BUGFIX #44, dict.keys() aren't list in Py3.
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Jan 8, 2018
1 parent 640eaed commit 71f69f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions seabird/netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def cnv2nc(data, filename):
nc.DATE_CREATION = datetime.now().strftime("%Y%m%s%H%M%S")

# print "Global attributes"
A = data.attributes.keys()
A.sort()
A = sorted(data.attributes.keys())
for a in A:
try:
nc.__setattr__(a, data.attributes[a])
Expand Down

0 comments on commit 71f69f3

Please sign in to comment.