forked from openlp/openlp
Minimize differences needed to run under OpenLP 2.4.6
This commit is contained in:
parent
d52d5bb0e2
commit
bc70eea7b9
@ -58,6 +58,11 @@ class SingingTheFaithImport(SongImport):
|
||||
for file_path in self.import_source:
|
||||
if self.stop_import_flag:
|
||||
return
|
||||
if isinstance(file_path, str):
|
||||
song_file = open(file_path, 'rt', encoding='cp1251')
|
||||
self.do_import_file(song_file)
|
||||
song_file.close()
|
||||
else:
|
||||
with file_path.open('rt', encoding='cp1251') as song_file:
|
||||
self.do_import_file(song_file)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user