oops
[sface.git] / sface / xmlrpcwindow.py
index 483d443..a7be214 100644 (file)
@@ -27,8 +27,8 @@ class XmlrpcTracker():
         answers = re.compile(pttrnAsk, re.DOTALL).findall(self.rawOutput)
         replies = re.compile(pttrnAns, re.DOTALL).findall(self.rawOutput)
         # cleaning
-        answers = map(lambda x: x.replace('\\n','\n'), answers)
-        replies = map(lambda x: x.replace('\\n','\n').replace("'\nbody: '", ''), replies)
+        answers = [ x.replace('\\n','\n') for x in answers ]
+        replies = [ x.replace('\\n','\n').replace("'\nbody: '", '') for x in replies ]
         replies.reverse() # so that I use pop() as popleft
         # A well-formed XML document must have one, and only one, top-level element
         self.xml = '<debug>'