Changeset 928:3b16c095d166 for src/mlx
- Timestamp:
- 04/27/19 12:20:37 (6 years ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/i18n.py
r919 r928 51 51 If not found, the fallback language is searched. If that is not found 52 52 either, the key itself is returned within curly braces.""" 53 return _translation. ugettext(key)53 return _translation.gettext(key) 54 54 55 55 #------------------------------------------------------------------------------ -
src/mlx/pyuipc_sim.py
r922 r928 606 606 return int(self.zfw * 256.0 * const.KGSTOLB) 607 607 elif offset==0x3c00: # Path of the current AIR file 608 return self.airPath608 return bytes(self.airPath, "iso-8859-1") 609 609 elif offset==0x3d00: # Name of the current aircraft 610 return self.aircraftName610 return bytes(self.aircraftName, "iso-8859-1") 611 611 elif offset==0x6202: # PMDG 737NG switches 612 612 return self.pmdg_737ng_switches -
src/mlx/rpc.py
r923 r928 470 470 471 471 md5 = hashlib.md5() 472 md5.update(password )472 md5.update(password.encode("utf-8")) 473 473 self._passwordHash = md5.hexdigest() 474 474 -
src/mlx/web.py
r923 r928 1014 1014 data = f.read(16384) 1015 1015 while data: 1016 parser.feed( data)1016 parser.feed(str(data)) 1017 1017 data = f.read(16384) 1018 1018 finally: … … 1051 1051 result = Result() 1052 1052 result.metars = {} 1053 for line in iter(f.readline, ""): 1053 for line in f.readlines(): 1054 line = str(line, "iso-8859-1") 1054 1055 if len(line)>5 and line[4]==' ': 1055 1056 icao = line[0:4]
Note:
See TracChangeset
for help on using the changeset viewer.