diff src/memory/memory.py @ 643:262d9d9ad27a

plugin XEP-0085: renamed category and parameter
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 19:50:12 +0200
parents e07a03d52321
children 17bd09cd1001
line wrap: on
line diff
--- a/src/memory/memory.py	Sun Sep 08 15:00:15 2013 +0200
+++ b/src/memory/memory.py	Sat Sep 07 19:50:12 2013 +0200
@@ -490,7 +490,7 @@
         def returnXML(prof_xml):
             return_xml = prof_xml.toxml()
             prof_xml.unlink()
-            return '\n'.join([line for line in return_xml.split('\n')])
+            return '\n'.join((line for line in return_xml.split('\n') if line))
 
         return self.__constructProfileXml(security_limit, profile).addCallback(returnXML)