combining two import statements

This commit is contained in:
M2j 2010-06-10 01:03:08 +02:00
parent 88930d3600
commit b022fef955
2 changed files with 2 additions and 3 deletions

View File

@ -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__)

View File

@ -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'),