mirror of https://github.com/fail2ban/fail2ban
ticket can contains bytes now (if deserialized from json by py3.x)
parent
930cc6c8f1
commit
7c9146feb3
|
@ -138,7 +138,7 @@ class Ticket(object):
|
|||
self._data['matches'] = matches or []
|
||||
|
||||
def getMatches(self):
|
||||
return [(line if isinstance(line, basestring) else "".join(line)) \
|
||||
return [(line if not isinstance(line, (list, tuple)) else "".join(line)) \
|
||||
for line in self._data.get('matches', ())]
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue