Why do you check the charset each time? 

Line 14 changed to
  data = unicode( song_data.read(length_descriptor), 
chardet.detect(data)['encoding'] )
should be enough
-- 
https://code.launchpad.net/~phill-ridout/openlp/1194610/+merge/178456
Your team OpenLP Core is subscribed to branch lp:openlp.

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to