Skip to content

Commit

Permalink
flarmcfg: Encode as ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Sep 15, 2014
1 parent 912d47c commit e7ab2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aerofiles/flarmcfg/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def format_longitude(self, value):
value, default='00000000E', is_latitude=False)

def write_line(self, line):
self.fp.write(line + '\r\n')
self.fp.write((line + u'\r\n').encode('ascii', 'replace'))

def write_config(self, key, value):
self.write_line('$PFLAC,S,%s,%s' % (key, value))
Expand Down

0 comments on commit e7ab2c6

Please sign in to comment.