Commits

Jason R. Coombs  committed ce62ba4

string.lower doesn't exist in Python 3

  • Participants
  • Parent commits f25f300
  • Tags 1103.4.4

Comments (0)

Files changed (1)

File pmxbot/web/viewer.py

 
 from __future__ import unicode_literals
 
-import string
 import posixpath
 import random
 import calendar
 		db = pmxbot.logging.Logger.store
 		context = get_context()
 		chans = []
-		for chan in sorted(db.list_channels(), key = string.lower):
+		lower_case = lambda string: string.lower()
+		for chan in sorted(db.list_channels(), key=lower_case):
 			last = db.last_message(chan)
 			summary = [
 				chan,