diff roundup/actions.py @ 4357:13b3155869e0

Beginnings of a big code cleanup / modernisation to make 2to3 happy
author Richard Jones <richard@users.sourceforge.net>
date Mon, 22 Feb 2010 05:26:57 +0000
parents d499c3499d18
children a7541077cf12
line wrap: on
line diff
--- a/roundup/actions.py	Fri Feb 19 05:09:38 2010 +0000
+++ b/roundup/actions.py	Mon Feb 22 05:26:57 2010 +0000
@@ -49,8 +49,8 @@
         # make sure we don't try to retire admin or anonymous
         if (classname == 'user' and
             self.db.user.get(itemid, 'username') in ('admin', 'anonymous')):
-            raise ValueError, self._(
-                'You may not retire the admin or anonymous user')
+            raise ValueError(self._(
+                'You may not retire the admin or anonymous user'))
 
         # do the retire
         self.db.getclass(classname).retire(itemid)

Roundup Issue Tracker: http://roundup-tracker.org/