[Libreoffice-commits] core.git: bin/benchmark-document-loading

Tor Lillqvist tml at collabora.com
Mon Sep 30 08:43:43 PDT 2013


 bin/benchmark-document-loading |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit e71692739698693ab8ce5cb893e6bca18eb47d03
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Sep 30 18:17:12 2013 +0300

    Drop bogus and unneeded os.makedirs() call
    
    It is a (file:) URL anyway, and LO seems to take care of creating the
    directory as neded.
    
    Change-Id: I19dd7b67cfe2f77cea14e882c1142fadde2fbdaa

diff --git a/bin/benchmark-document-loading b/bin/benchmark-document-loading
index 25f354e..5bba53e 100644
--- a/bin/benchmark-document-loading
+++ b/bin/benchmark-document-loading
@@ -326,10 +326,6 @@ def loadFromURL(xContext, url, t, component):
             xGEB.removeDocumentEventListener(xListener)
 
 def exportToODF(xContext, xDoc, baseName, t, component):
-    try:
-        os.makedirs(outdir)
-    except OSError:
-        pass
     exportFileName = outdir + "/" + os.path.splitext(baseName)[0] + flatODFTypes[component][0]
     print("exportToODF " + baseName + " => " + exportFileName)
     props = [("FilterName", flatODFTypes[component][1]),


More information about the Libreoffice-commits mailing list