mirror of https://gitlab.com/bashrc2/epicyon
Remove newline
parent
7c9fc8dfbb
commit
bbfb92d36b
1
city.py
1
city.py
|
@ -130,6 +130,7 @@ def _getCityPulse(currTimeOfDay, decoySeed: int) -> (float, float):
|
||||||
def parseNogoString(nogoLine: str) -> []:
|
def parseNogoString(nogoLine: str) -> []:
|
||||||
"""Parses a line from locations_nogo.txt and returns the polygon
|
"""Parses a line from locations_nogo.txt and returns the polygon
|
||||||
"""
|
"""
|
||||||
|
nogoLine = nogoLine.replace('\n', '').replace('\r', '')
|
||||||
polygonStr = nogoLine.split(':', 1)[1]
|
polygonStr = nogoLine.split(':', 1)[1]
|
||||||
if ';' in polygonStr:
|
if ';' in polygonStr:
|
||||||
pts = polygonStr.split(';')
|
pts = polygonStr.split(';')
|
||||||
|
|
Loading…
Reference in New Issue