forked from openlp/openlp
Small fixes for comments typos in songs.lib modules
This commit is contained in:
parent
370603c779
commit
1184e9219d
@ -90,7 +90,7 @@ class SongFormat(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_class(format):
|
def get_class(format):
|
||||||
"""
|
"""
|
||||||
Return the appropriate imeplementation class.
|
Return the appropriate implementation class.
|
||||||
|
|
||||||
``format``
|
``format``
|
||||||
The song format.
|
The song format.
|
||||||
|
@ -75,8 +75,7 @@ class PowerSongImport(SongImport):
|
|||||||
* There is no concept of verse types.
|
* There is no concept of verse types.
|
||||||
|
|
||||||
Valid extensions for a PowerSong song file are:
|
Valid extensions for a PowerSong song file are:
|
||||||
|
* .song
|
||||||
* .song
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, manager, **kwargs):
|
def __init__(self, manager, **kwargs):
|
||||||
|
@ -111,7 +111,7 @@ class SongImport(QtCore.QObject):
|
|||||||
instance a database), then this should be the song's title.
|
instance a database), then this should be the song's title.
|
||||||
|
|
||||||
``reason``
|
``reason``
|
||||||
The reason, why the import failed. The string should be as
|
The reason why the import failed. The string should be as
|
||||||
informative as possible.
|
informative as possible.
|
||||||
"""
|
"""
|
||||||
self.setDefaults()
|
self.setDefaults()
|
||||||
|
@ -71,7 +71,7 @@ class WowImport(SongImport):
|
|||||||
* ``SOH`` (0x01) - Chorus
|
* ``SOH`` (0x01) - Chorus
|
||||||
* ``STX`` (0x02) - Bridge
|
* ``STX`` (0x02) - Bridge
|
||||||
|
|
||||||
Blocks are seperated by two bytes. The first byte is 0x01, and the
|
Blocks are separated by two bytes. The first byte is 0x01, and the
|
||||||
second byte is 0x80.
|
second byte is 0x80.
|
||||||
|
|
||||||
Lines:
|
Lines:
|
||||||
@ -126,7 +126,7 @@ class WowImport(SongImport):
|
|||||||
('Invalid Words of Worship song file. Missing '
|
('Invalid Words of Worship song file. Missing '
|
||||||
'"CSongDoc::CBlock" string.'))))
|
'"CSongDoc::CBlock" string.'))))
|
||||||
continue
|
continue
|
||||||
# Seek to the beging of the first block
|
# Seek to the beginning of the first block
|
||||||
song_data.seek(82)
|
song_data.seek(82)
|
||||||
for block in range(no_of_blocks):
|
for block in range(no_of_blocks):
|
||||||
self.linesToRead = ord(song_data.read(4)[:1])
|
self.linesToRead = ord(song_data.read(4)[:1])
|
||||||
@ -140,7 +140,7 @@ class WowImport(SongImport):
|
|||||||
block_text += self.lineText
|
block_text += self.lineText
|
||||||
self.linesToRead -= 1
|
self.linesToRead -= 1
|
||||||
block_type = BLOCK_TYPES[ord(song_data.read(4)[:1])]
|
block_type = BLOCK_TYPES[ord(song_data.read(4)[:1])]
|
||||||
# Blocks are seperated by 2 bytes, skip them, but not if
|
# Blocks are separated by 2 bytes, skip them, but not if
|
||||||
# this is the last block!
|
# this is the last block!
|
||||||
if block + 1 < no_of_blocks:
|
if block + 1 < no_of_blocks:
|
||||||
song_data.seek(2, os.SEEK_CUR)
|
song_data.seek(2, os.SEEK_CUR)
|
||||||
|
Loading…
Reference in New Issue
Block a user