mirror of
https://gitlab.com/openlp/openlp.git
synced 2024-09-29 19:37:38 +00:00
Code cleanups
This commit is contained in:
parent
a026633f78
commit
b38921a90b
@ -45,7 +45,7 @@
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
log.debug('rpjlink1 loaded')
|
||||
log.debug('pjlink1 loaded')
|
||||
|
||||
__all__ = ['PJLink1']
|
||||
|
||||
@ -268,11 +268,11 @@ class PJLink1(QTcpSocket):
|
||||
:returns: (Status/Error code, String)
|
||||
"""
|
||||
if status in ERROR_STRING:
|
||||
return (ERROR_STRING[status], ERROR_MSG[status])
|
||||
return ERROR_STRING[status], ERROR_MSG[status]
|
||||
elif status in STATUS_STRING:
|
||||
return (STATUS_STRING[status], ERROR_MSG[status])
|
||||
return STATUS_STRING[status], ERROR_MSG[status]
|
||||
else:
|
||||
return (status, translate('OpenLP.PJLink1', 'Unknown status'))
|
||||
return status, translate('OpenLP.PJLink1', 'Unknown status')
|
||||
|
||||
def change_status(self, status, msg=None):
|
||||
"""
|
||||
|
@ -70,7 +70,7 @@ class TestProjectorManager(TestCase, TestMixin):
|
||||
Delete all the C++ objects at the end so that we don't have a segfault.
|
||||
"""
|
||||
self.projectordb.session.close()
|
||||
del(self.projector_manager)
|
||||
del self.projector_manager
|
||||
self.destroy_settings()
|
||||
|
||||
def bootstrap_initialise_test(self):
|
||||
|
Loading…
Reference in New Issue
Block a user