PluginManager/PluginInstallDialog.py

changeset 415
59a0f9e90768
parent 96
9624a110667d
child 465
c20e25deb33a
--- a/PluginManager/PluginInstallDialog.py	Tue Jul 27 12:44:19 2010 +0200
+++ b/PluginManager/PluginInstallDialog.py	Tue Jul 27 12:49:37 2010 +0200
@@ -379,8 +379,8 @@
                     QApplication.processEvents()
                     prog += 1
                     if name == pluginFileName or \
-                       name.startswith("%s/" % packageName) or \
-                       name.startswith("%s\\" % packageName):
+                       name.startswith("{0}/".format(packageName)) or \
+                       name.startswith("{0}\\".format(packageName)):
                         outname = name.replace("/", os.sep)
                         outname = os.path.join(destination, outname)
                         if outname.endswith("/") or outname.endswith("\\"):
@@ -489,11 +489,11 @@
             if packageDir and os.path.exists(packageDir):
                 shutil.rmtree(packageDir)
             
-            fnameo = "%so" % pluginFile
+            fnameo = "{0}o".format(pluginFile)
             if os.path.exists(fnameo):
                 os.remove(fnameo)
             
-            fnamec = "%sc" % pluginFile
+            fnamec = "{0}c".format(pluginFile)
             if os.path.exists(fnamec):
                 os.remove(fnamec)
             

eric ide

mercurial