Ignore:
Timestamp:
04/27/19 12:20:37 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Unicode handling changes (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r923 r928  
    10141014                data = f.read(16384)
    10151015                while data:
    1016                     parser.feed(data)
     1016                    parser.feed(str(data))
    10171017                    data = f.read(16384)
    10181018            finally:
     
    10511051            result = Result()
    10521052            result.metars = {}
    1053             for line in iter(f.readline, ""):
     1053            for line in f.readlines():
     1054                line = str(line, "iso-8859-1")
    10541055                if len(line)>5 and line[4]==' ':
    10551056                    icao = line[0:4]
Note: See TracChangeset for help on using the changeset viewer.