Commits

Jason R. Coombs committed ce62ba4

string.lower doesn't exist in Python 3

Comments (0)

Files changed (1)

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,