summaryrefslogtreecommitdiff
path: root/sunshine/util/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'sunshine/util/config.py')
-rw-r--r--sunshine/util/config.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sunshine/util/config.py b/sunshine/util/config.py
index 3fa300e..3a209a3 100644
--- a/sunshine/util/config.py
+++ b/sunshine/util/config.py
@@ -47,10 +47,9 @@ class SunshineConfig(object):
ET.SubElement(contact_avatars_xml, "URL").text = ""
ET.SubElement(contact_xml, "FlagNormal").text = "true"
- #main_xml = ET.ElementTree(contactbook_xml)
+ main_xml = ET.ElementTree(contactbook_xml)
if self.contacts_len >= 0 and self.groups_len >= 0:
- #main_xml.write(self.path, encoding="UTF-8")
- return "%s\n%s" % ("<?xml version='1.0' encoding='UTF-8'?>", ET.tostring(contactbook_xml))
+ return main_xml
def get_contacts_count(self):
return self.contacts_count