chiark / gitweb /
urlcomplaints is an array not a function
authorMatthew Vernon <matthew@rapun.sel.cam.ac.uk>
Fri, 4 Jun 2010 19:37:46 +0000 (20:37 +0100)
committerMatthew Vernon <matthew@rapun.sel.cam.ac.uk>
Fri, 4 Jun 2010 19:37:46 +0000 (20:37 +0100)
commands.py

index 8dd8e59..fb35d4f 100644 (file)
@@ -323,7 +323,7 @@ class UrlLog:
         return nicetime(time.time()-self.first)
     def urltype(self):
         z=max(len(urlcomplaints), self.count-1)
-        return urlcomplaints(z)
+        return urlcomplaints[z]
         
 urlre = re.compile("(https?://[^ ]+)( |$)")
 urlcomplaints = ["a contemporary","an interesting","a fascinating","an overused","a vastly overused"]