From 3fff395160b634de7e627140a8f50f8e917a2a91 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 5 Aug 2009 16:44:45 +0000 Subject: [PATCH] Monotone-Parent: d35569adb5f95d077a2e359cae7af87c6ba720d1 Monotone-Revision: 07373a01b29415522044be3734f2799491696ebc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-08-05T16:44:45 Monotone-Branch: ca.inverse.sogo --- Tests/webdavlib.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Tests/webdavlib.py b/Tests/webdavlib.py index 3498e9706..a0544f173 100644 --- a/Tests/webdavlib.py +++ b/Tests/webdavlib.py @@ -204,11 +204,10 @@ class _WD_XMLTreeElement: if ns_text is not None: text = text + ns_text - count = len(self.children) - if count > 0: + if len(self.children) > 0: text = text + ">" - for x in range(0, count): - text = text + self.children[x].render() + for child in self.children: + text = text + child.render() text = text + "" else: text = text + "/>"