From 7b6ab6be4d5f3c98768018cdd059b7f870674489 Mon Sep 17 00:00:00 2001 From: Guannan Ma Date: Thu, 10 Mar 2016 17:50:33 +0800 Subject: [PATCH] fix a hdfs conf bug --- cup/util/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cup/util/conf.py b/cup/util/conf.py index 8bb21f2..8094142 100644 --- a/cup/util/conf.py +++ b/cup/util/conf.py @@ -1121,9 +1121,9 @@ def _write_to_conf(self, new_confdict): if valuenode.firstChild is None: if tmpdict[name]['value'] is not None: valuenode.appendChild(dom.createTextNode('')) - valuenode.firstChild.replaceWholeText( - tmpdict[name]['value'] - ) + valuenode.firstChild.replaceWholeText( + tmpdict[name]['value'] + ) del tmpdict[name] else: parent = pro.parentNode