Index: trunk/tools/adminlogbot/adminlog.py |
— | — | @@ -9,7 +9,6 @@ |
10 | 10 | import mwclient |
11 | 11 | import datetime |
12 | 12 | import statusnet |
13 | | -import re |
14 | 13 | |
15 | 14 | months=["January","February","March","April","May","June","July","August","September","October","November","December"] |
16 | 15 | |
— | — | @@ -27,10 +26,6 @@ |
28 | 27 | undef,month,day,undef=line.split(" ",3) |
29 | 28 | break |
30 | 29 | |
31 | | - # Add some formatting to the message to link revision and bug numbers |
32 | | - message = re.sub( r'\b[rR](\d+)\b', r'[[rev:\1|r\1]]', message ) |
33 | | - message = re.sub( r'\bbug ?(\d+)\b', r'[[bugzilla:\1|bug \1]]', message ) |
34 | | - |
35 | 30 | # Um, check the date |
36 | 31 | now=datetime.datetime.utcnow() |
37 | 32 | logline="* %02d:%02d %s: %s" % ( now.hour, now.minute, author, message ) |