forked from openlp/openlp
combining two import statements
This commit is contained in:
parent
88930d3600
commit
b022fef955
@ -27,8 +27,7 @@ import logging
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
from openlp.core.lib import translate
|
||||
from openlp.core.lib.plugin import PluginStatus
|
||||
from openlp.core.lib.plugin import PluginStatus, translate
|
||||
from plugindialog import Ui_PluginViewDialog
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -243,7 +243,7 @@ class ThemeManager(QtGui.QWidget):
|
||||
try:
|
||||
zip = zipfile.ZipFile(themePath, u'w')
|
||||
source = os.path.join(self.path, theme)
|
||||
for root, dirs, files in os.walk(source):
|
||||
for files in os.walk(source)[2]:
|
||||
for name in files:
|
||||
zip.write(
|
||||
os.path.join(source, name).encode(u'utf-8'),
|
||||
|
Loading…
Reference in New Issue
Block a user