- Replaced "map" with list comprehension

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@459 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 2006-11-12 21:55:57 +00:00
parent 90359ba523
commit 2995a99596
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class CSocket:
def send(self, msg):
# Convert every list member to string
obj = dumps(map(str, msg), HIGHEST_PROTOCOL)
obj = dumps([str(m) for m in msg], HIGHEST_PROTOCOL)
self.__csock.send(obj + CSocket.END_STRING)
ret = self.receive(self.__csock)
self.__csock.close()