Remove newline

merge-requests/30/head
Bob Mottram 2021-06-21 15:59:35 +01:00
parent 7c9fc8dfbb
commit bbfb92d36b
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ def _getCityPulse(currTimeOfDay, decoySeed: int) -> (float, float):
def parseNogoString(nogoLine: str) -> []:
"""Parses a line from locations_nogo.txt and returns the polygon
"""
nogoLine = nogoLine.replace('\n', '').replace('\r', '')
polygonStr = nogoLine.split(':', 1)[1]
if ';' in polygonStr:
pts = polygonStr.split(';')