ticket can contains bytes now (if deserialized from json by py3.x)

pull/2171/head
sebres 2018-07-04 17:04:12 +02:00
parent 930cc6c8f1
commit 7c9146feb3
1 changed files with 1 additions and 1 deletions

View File

@ -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