# Path: aerofiles/seeyou/converter.py
# WAYPOINT_STYLE_MAPPING = {
#     WaypointStyle.NORMAL: [],
#     WaypointStyle.AIRFIELD_GRASS: ['landable', 'airfield'],
#     WaypointStyle.OUTLANDING: ['landable'],
#     WaypointStyle.GLIDERSITE: ['landable', 'airfield', 'glidersite'],
#     WaypointStyle.AIRFIELD_SOLID: ['landable', 'airfield'],
#     WaypointStyle.MOUNTAIN_PASS: ['mountain-pass'],
#     WaypointStyle.MOUNTAIN_TOP: ['mountain-top'],
#     WaypointStyle.SENDER: ['sender'],
#     WaypointStyle.VOR: ['vor'],
#     WaypointStyle.NDB: ['ndb'],
#     WaypointStyle.COOL_TOWER: ['tower'],
#     WaypointStyle.DAM: ['dam'],
#     WaypointStyle.TUNNEL: ['tunnel'],
#     WaypointStyle.BRIDGE: ['bridge'],
#     WaypointStyle.POWER_PLANT: ['power-plant'],
#     WaypointStyle.CASTLE: ['castle'],
#     WaypointStyle.INTERSECTION: ['intersection'],
# }
# UNITS_MAPPING = {
#     'm': units.METER,
#     'ft': units.FEET,
#     'km': units.KILOMETER,
#     'ml': units.STATUTE_MILE,
#     'nm': units.NAUTICAL_MILE,
# }
# class Converter:
#     def __init__(self, fp):
#     def __iter__(self):
#     def next(self):
#     def convert_waypoint(self, old):
#     def convert_elevation(self, elevation):
#     def convert_runways(self, style, dir, length):
#     def convert_frequencies(self, frq):


import datetime
from .converter import WaypointStyle
        elif isinstance(distance, int):
            return self.DISTANCE_FORMAT_INT % (distance, unit)
        else:
            return self.DISTANCE_FORMAT_OTHER % (distance, unit)

    def format_time(self, time):
        if isinstance(time, datetime.datetime):
            time = time.time()

        if isinstance(time, datetime.time):
            time = time.strftime(u'%H:%M:%S')

        return time

    def format_timedelta(self, timedelta):
        if isinstance(timedelta, datetime.timedelta):
            hours, remainder = divmod(timedelta.seconds, 3600)
            minutes, seconds = divmod(remainder, 60)
            timedelta = u'%02d:%02d:%02d' % (hours, minutes, seconds)

        return timedelta

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

    def write_fields(self, fields):
        self.write_line(u','.join(fields))

    def write_waypoint(
            self, name, shortname, country, latitude, longitude, elevation=u'',

# Path: aerofiles/seeyou/converter.py
# WAYPOINT_STYLE_MAPPING = {
#     WaypointStyle.NORMAL: [],
#     WaypointStyle.AIRFIELD_GRASS: ['landable', 'airfield'],
#     WaypointStyle.OUTLANDING: ['landable'],
#     WaypointStyle.GLIDERSITE: ['landable', 'airfield', 'glidersite'],
#     WaypointStyle.AIRFIELD_SOLID: ['landable', 'airfield'],
#     WaypointStyle.MOUNTAIN_PASS: ['mountain-pass'],
#     WaypointStyle.MOUNTAIN_TOP: ['mountain-top'],
#     WaypointStyle.SENDER: ['sender'],
#     WaypointStyle.VOR: ['vor'],
#     WaypointStyle.NDB: ['ndb'],
#     WaypointStyle.COOL_TOWER: ['tower'],
#     WaypointStyle.DAM: ['dam'],
#     WaypointStyle.TUNNEL: ['tunnel'],
#     WaypointStyle.BRIDGE: ['bridge'],
#     WaypointStyle.POWER_PLANT: ['power-plant'],
#     WaypointStyle.CASTLE: ['castle'],
#     WaypointStyle.INTERSECTION: ['intersection'],
# }
# UNITS_MAPPING = {
#     'm': units.METER,
#     'ft': units.FEET,
#     'km': units.KILOMETER,
#     'ml': units.STATUTE_MILE,
#     'nm': units.NAUTICAL_MILE,
# }
# class Converter:
#     def __init__(self, fp):
#     def __iter__(self):
#     def next(self):
#     def convert_waypoint(self, old):
#     def convert_elevation(self, elevation):
#     def convert_runways(self, style, dir, length):
#     def convert_frequencies(self, frq):


# Path: aerofiles/seeyou/writer.py
import datetime
from .converter import WaypointStyle

        elif isinstance(distance, int):
            return self.DISTANCE_FORMAT_INT % (distance, unit)
        else:
            return self.DISTANCE_FORMAT_OTHER % (distance, unit)

    def format_time(self, time):
        if isinstance(time, datetime.datetime):
            time = time.time()

        if isinstance(time, datetime.time):
            time = time.strftime(u'%H:%M:%S')

        return time

    def format_timedelta(self, timedelta):
        if isinstance(timedelta, datetime.timedelta):
            hours, remainder = divmod(timedelta.seconds, 3600)
            minutes, seconds = divmod(remainder, 60)
            timedelta = u'%02d:%02d:%02d' % (hours, minutes, seconds)

        return timedelta

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

    def write_fields(self, fields):
        self.write_line(u','.join(fields))

    def write_waypoint(
            self, name, shortname, country, latitude, longitude, elevation=u'',

            style=WaypointStyle.NORMAL, runway_direction=u'', runway_length=u'',