Fix newline recognition in the trackplacer
This commit is contained in:
parent
304fd2d380
commit
79c9219d72
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ class JourneyTracks:
|
|||
"Initialize a journey from map and track information."
|
||||
if type(fp) == type(""):
|
||||
try:
|
||||
fp = open(fp)
|
||||
fp = open(fp, "rU")
|
||||
except IOError:
|
||||
raise IOException("Cannot read file.", fp)
|
||||
if self.tracks:
|
||||
|
|
Loading…
Add table
Reference in a new issue