forked from openlp/openlp
Linting changes
This commit is contained in:
parent
573f31fd45
commit
8789073eb3
|
@ -34,7 +34,7 @@ from ipaddress import IPv4Address, IPv6Address, AddressValueError
|
|||
from shutil import which
|
||||
from subprocess import check_output, CalledProcessError, STDOUT
|
||||
|
||||
from PyQt5 import QtGui, QtWidgets
|
||||
from PyQt5 import QtGui
|
||||
from PyQt5.QtCore import QCryptographicHash as QHash
|
||||
from PyQt5.QtNetwork import QAbstractSocket, QHostAddress, QNetworkInterface
|
||||
from chardet.universaldetector import UniversalDetector
|
||||
|
|
|
@ -197,7 +197,7 @@ class VlcPlayer(MediaPlayer):
|
|||
"""
|
||||
return get_vlc() is not None
|
||||
|
||||
def load(self, display, file): # TODO: pathlib
|
||||
def load(self, display, file):
|
||||
"""
|
||||
Load a video into VLC
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ The service manager sets up, loads, saves and manages services.
|
|||
import html
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import zipfile
|
||||
from contextlib import suppress
|
||||
from datetime import datetime, timedelta
|
||||
|
|
|
@ -27,13 +27,11 @@ import logging
|
|||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
from openlp.core.common import is_macosx
|
||||
from openlp.core.common.i18n import UiStrings, translate
|
||||
from openlp.core.common.i18n import translate
|
||||
from openlp.core.common.mixins import RegistryProperties
|
||||
from openlp.core.common.registry import Registry
|
||||
from openlp.core.common.settings import Settings
|
||||
from openlp.core.lib.ui import add_welcome_page
|
||||
from openlp.core.ui.icons import UiIcons
|
||||
from openlp.core.widgets.dialogs import FileDialog
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
|
@ -28,7 +28,7 @@ from sqlalchemy.sql import and_, func, or_
|
|||
from openlp.core.common.i18n import UiStrings, translate
|
||||
from openlp.core.common.registry import Registry
|
||||
from openlp.core.common.settings import Settings
|
||||
from openlp.core.lib import ServiceItemContext, check_item_selected
|
||||
from openlp.core.lib import check_item_selected
|
||||
from openlp.core.lib.mediamanageritem import MediaManagerItem
|
||||
from openlp.core.lib.plugin import PluginStatus
|
||||
from openlp.core.lib.serviceitem import ItemCapabilities
|
||||
|
|
|
@ -29,7 +29,7 @@ from openlp.core.state import State
|
|||
from openlp.core.common.applocation import AppLocation
|
||||
from openlp.core.common.i18n import UiStrings, get_natural_key, translate
|
||||
from openlp.core.common.mixins import RegistryProperties
|
||||
from openlp.core.common.path import Path, create_paths, path_to_str
|
||||
from openlp.core.common.path import create_paths, path_to_str
|
||||
from openlp.core.common.registry import Registry
|
||||
from openlp.core.common.settings import Settings
|
||||
from openlp.core.lib import MediaType, ServiceItemContext, check_item_selected
|
||||
|
|
|
@ -251,6 +251,7 @@ class CCLIFileImport(SongImport):
|
|||
line_number = 0
|
||||
check_first_verse_line = False
|
||||
verse_text = ''
|
||||
verse_type = VerseType.tags[VerseType.Verse]
|
||||
song_author = ''
|
||||
verse_start = False
|
||||
for line in text_list:
|
||||
|
@ -262,6 +263,7 @@ class CCLIFileImport(SongImport):
|
|||
if verse_text:
|
||||
self.add_verse(verse_text, verse_type)
|
||||
verse_text = ''
|
||||
verse_type = VerseType.tags[VerseType.Verse]
|
||||
verse_start = False
|
||||
else:
|
||||
# line_number=0, song title
|
||||
|
|
Loading…
Reference in New Issue