Commits

Jason R. Coombs  committed c1170db

Fix issue in log search on Python 3

  • Participants
  • Parent commits 220fe71
  • Tags 1106.1.1

Comments (0)

Files changed (2)

+1106.1.1
+========
+
+* Fix issue in log search on Python 3.
+
 1106.1
 ======
 

File pmxbot/logging.py

 				_id={'$gt': match['_id']}
 				)).sort('_id', storage.pymongo.ASCENDING).limit(2)
 			next2 = map(to_line, next2)
-			context = prev2 + [line] + next2
+			context = list(itertools.chain(prev2, [line], next2))
 			marker = self.make_anchor(line[:2])
 			matches.append((channel, row_date(match), marker, context))
 			alllines.extend(context)