# Path: aerofiles/errors.py
# class ParserError(RuntimeError):
#     pass


import re
from aerofiles.errors import ParserError
                direction = int(match.group(1)) * 10
                directions.append(direction)

            match = RE_RUNWAY_DIRECTION.match(line[34:36])
            if match:
                direction = int(match.group(1)) * 10
                if direction not in directions:
                    directions.append(direction)

            return directions or None

    def decode_frequency(self, line):
        if self.has_metadata(line):
            match = RE_FREQUENCY.match(line[36:41])
            if match:
                frq = match.group(1) + '.' + match.group(2)
                frq += '5' if frq.endswith('2') or frq.endswith('7') else '0'
                return frq

    def decode_elevation(self, line):
        match = RE_ELEVATION.match(line[41:45])
        if match:
            return int(match.group(1))

    def decode_elevation_proved(self, line):
        return line[41] == '0'

    def decode_latitude(self, line):
        match = RE_LATITUDE.match(line[45:52])
        if not match:

# Path: aerofiles/errors.py
# class ParserError(RuntimeError):
#     pass


# Path: aerofiles/welt2000/reader.py
import re
from aerofiles.errors import ParserError

                direction = int(match.group(1)) * 10
                directions.append(direction)

            match = RE_RUNWAY_DIRECTION.match(line[34:36])
            if match:
                direction = int(match.group(1)) * 10
                if direction not in directions:
                    directions.append(direction)

            return directions or None

    def decode_frequency(self, line):
        if self.has_metadata(line):
            match = RE_FREQUENCY.match(line[36:41])
            if match:
                frq = match.group(1) + '.' + match.group(2)
                frq += '5' if frq.endswith('2') or frq.endswith('7') else '0'
                return frq

    def decode_elevation(self, line):
        match = RE_ELEVATION.match(line[41:45])
        if match:
            return int(match.group(1))

    def decode_elevation_proved(self, line):
        return line[41] == '0'

    def decode_latitude(self, line):
        match = RE_LATITUDE.match(line[45:52])
        if not match:

            raise ParserError('Reading latitude failed')