From f7d55197573c15731d712e81188d19ea6c4611f5 Mon Sep 17 00:00:00 2001 From: emijrp Date: Fri, 15 Apr 2011 13:47:44 +0000 Subject: [PATCH] issue #4 git-svn-id: https://wikiteam.googlecode.com/svn/trunk@83 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95 --- dumpgenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumpgenerator.py b/dumpgenerator.py index 36cd290..2871cda 100644 --- a/dumpgenerator.py +++ b/dumpgenerator.py @@ -313,8 +313,8 @@ def generateXMLDump(config={}, titles=[], start=''): xmlfile.close() xmlfile2.close() #subst xml with xml2 - os.remove('%s/%s' % (config['path'], xmlfilename)) - os.rename('%s/%s2' % (config['path'], xmlfilename), '%s/%s' % (config['path'], xmlfilename)) + os.remove('%s/%s' % (config['path'], xmlfilename)) #remove previous xml dump + os.rename('%s/%s2' % (config['path'], xmlfilename), '%s/%s' % (config['path'], xmlfilename)) #move correctly truncated dump to its real name else: #requested complete xml dump lock = False