chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a9d6af
)
urlcomplaints is an array not a function
author
Matthew Vernon
<matthew@rapun.sel.cam.ac.uk>
Fri, 4 Jun 2010 19:37:46 +0000
(20:37 +0100)
committer
Matthew Vernon
<matthew@rapun.sel.cam.ac.uk>
Fri, 4 Jun 2010 19:37:46 +0000
(20:37 +0100)
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index 8dd8e595c650baabf9d8da4051a99a11f06f0995..fb35d4f075bd19b2168b1ff511f610ffb19f488f 100644
(file)
--- a/
commands.py
+++ b/
commands.py
@@
-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"]