revert previous commit. toprettyxml is not working properly
git-svn-id: svn+ssh://svn.marcochapeau.org/laditools/trunk@204 bfe161da-02ef-4cea-8c43-ae261ea21ac6
This commit is contained in:
parent
ea3dc9e312
commit
4ee1f7ac33
|
@ -16,6 +16,7 @@
|
|||
|
||||
import xml.dom
|
||||
from xml.dom.minidom import parse, getDOMImplementation
|
||||
from xml.dom.ext import PrettyPrint
|
||||
|
||||
# Let's make sure we'll place the file in an existing dir
|
||||
from os import environ, sep, mkdir
|
||||
|
@ -129,4 +130,4 @@ class config:
|
|||
# Use this when you want to write the config file to disk
|
||||
def save(self):
|
||||
config_file = open(config_filename, 'w')
|
||||
config_file.write(self.doc.toprettyxml())
|
||||
PrettyPrint(self.doc, config_file)
|
||||
|
|
Loading…
Reference in New Issue