clean ups

This commit is contained in:
Andreas Preikschat 2011-01-09 18:07:17 +01:00
parent ce1241aa0f
commit 62794614f9
2 changed files with 3 additions and 3 deletions

View File

@ -35,11 +35,11 @@ class HideMode(object):
``Blank`` ``Blank``
This mode is used to hide all output, specifically by covering the This mode is used to hide all output, specifically by covering the
display with a black screen. display with a black screen.
``Theme`` ``Theme``
This mode is used to hide all output, but covers the display with the This mode is used to hide all output, but covers the display with the
current theme background, as opposed to black. current theme background, as opposed to black.
``Desktop`` ``Desktop``
This mode hides all output by minimising the display, leaving the user's This mode hides all output by minimising the display, leaving the user's
desktop showing. desktop showing.

View File

@ -269,7 +269,7 @@ class OpenLyrics(object):
song = Song() song = Song()
if xml[:5] == u'<?xml': if xml[:5] == u'<?xml':
xml = xml[38:] xml = xml[38:]
# Remove chords # Remove chords from xml.
xml = re.compile(u'<chord name=".*?"/>').sub(u'', xml) xml = re.compile(u'<chord name=".*?"/>').sub(u'', xml)
song_xml = objectify.fromstring(xml) song_xml = objectify.fromstring(xml)
properties = song_xml.properties properties = song_xml.properties