[Python-checkins] r68655 - tracker/instances/spambayes_integration/extensions/spambayes.py

martin.v.loewis python-checkins at python.org
Sat Jan 17 12:40:23 CET 2009


Author: martin.v.loewis
Date: Sat Jan 17 12:40:23 2009
New Revision: 68655

Log:
Fix syntax errors.


Modified:
   tracker/instances/spambayes_integration/extensions/spambayes.py

Modified: tracker/instances/spambayes_integration/extensions/spambayes.py
==============================================================================
--- tracker/instances/spambayes_integration/extensions/spambayes.py	(original)
+++ tracker/instances/spambayes_integration/extensions/spambayes.py	Sat Jan 17 12:40:23 2009
@@ -1,3 +1,4 @@
+import re
 from roundup.cgi.actions import Action
 from roundup.cgi.exceptions import *
 
@@ -11,7 +12,7 @@
     authorage = node['creation'].timestamp() - \
                 db.getnode('user', node.get('author', node.get('creator')))['creation'].timestamp()
 
-    authorid = node.get('author', node.get('creator')
+    authorid = node.get('author', node.get('creator'))
 
     tokens = ["klass:%s" % classname,
               "author:%s" % authorid,


More information about the Python-checkins mailing list