Changeset 930:6da5e7a7ca9b for src/mlx
- Timestamp:
- 04/27/19 12:21:24 (6 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r928 r930 15 15 import hashlib 16 16 import time 17 import re 17 18 import datetime 18 19 import codecs … … 578 579 def _parseCurrentNOTAM2(self): 579 580 """Parse the current NOTAM with a second, more flexible method.""" 581 self._currentNOTAM = self._currentNOTAM.replace("\\n", "\n") 580 582 lines = self._currentNOTAM.splitlines() 583 if len(lines)==1: 584 lines = lines[0].splitlines() 581 585 lines = [line.strip() for line in lines] 582 586 … … 614 618 615 619 def parseTime(item): 620 item = re.sub("([0-9]+).*", "\\1", item) 616 621 try: 617 622 return datetime.datetime.strptime(item, "%y%m%d%H%M")
Note:
See TracChangeset
for help on using the changeset viewer.