Unused import and variable fixes

bzr-revno: 821
This commit is contained in:
Jon Tibble 2010-05-20 22:05:28 +01:00
commit 3324bcf6aa
4 changed files with 3 additions and 12 deletions

View File

@ -314,7 +314,7 @@ class HttpConnection(object):
""" """
if not self.socket: if not self.socket:
return return
html = self.send_408_timeout() self.send_408_timeout()
self.close() self.close()
def disconnected(self): def disconnected(self):
@ -334,4 +334,3 @@ class HttpConnection(object):
self.socket.close() self.socket.close()
self.socket = None self.socket = None
self.parent.close_connection(self) self.parent.close_connection(self)

View File

@ -25,9 +25,7 @@
import logging import logging
from PyQt4 import QtNetwork, QtCore from openlp.core.lib import Plugin
from openlp.core.lib import Plugin, Receiver
from openlp.plugins.remotes.lib import RemoteTab, HttpServer from openlp.plugins.remotes.lib import RemoteTab, HttpServer
log = logging.getLogger(__name__) log = logging.getLogger(__name__)

View File

@ -23,10 +23,7 @@
# Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Temple Place, Suite 330, Boston, MA 02111-1307 USA #
############################################################################### ###############################################################################
import csv
import logging import logging
import os
import os.path
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui

View File

@ -49,9 +49,7 @@ translations = [ u"en"
, u"pt_BR" , u"pt_BR"
, u"es" , u"es"
, u"sv"] , u"sv"]
def write_file(filename, stringlist): def write_file(filename, stringlist):
content = u'' content = u''
for line in stringlist: for line in stringlist:
@ -76,7 +74,6 @@ def main():
help="proceed all options") help="proceed all options")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
qt_args = []
if options.download: if options.download:
downloadTranslations() downloadTranslations()
elif options.prepare: elif options.prepare: