Fix newline recognition in the trackplacer

This commit is contained in:
aquileia 2015-01-13 03:58:04 +01:00
parent 304fd2d380
commit 79c9219d72

View file

@ -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: