Open opensong files in 'rb' mode. Fixes bug 1396958

Fixes: https://launchpad.net/bugs/1396958
This commit is contained in:
Tomas Groth 2014-11-28 08:13:21 +00:00
parent 9b731aad7a
commit 01cbd921e9

View File

@ -126,7 +126,7 @@ class OpenSongImport(SongImport):
for filename in self.import_source: for filename in self.import_source:
if self.stop_import_flag: if self.stop_import_flag:
return return
song_file = open(filename) song_file = open(filename, 'rb')
self.do_import_file(song_file) self.do_import_file(song_file)
song_file.close() song_file.close()