Mercurial > p > roundup > code
diff roundup/backends/sessions_rdbms.py @ 4362:74476eaac38a
more modernisation
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 26 Feb 2010 00:38:53 +0000 |
| parents | 0112e9e1d068 |
| children | 936bd9bf732d |
line wrap: on
line diff
--- a/roundup/backends/sessions_rdbms.py Tue Feb 23 22:54:59 2010 +0000 +++ b/roundup/backends/sessions_rdbms.py Fri Feb 26 00:38:53 2010 +0000 @@ -36,7 +36,7 @@ if not res: if default != self._marker: return default - raise KeyError, 'No such %s "%s"'%(self.name, infoid) + raise KeyError('No such %s "%s"'%(self.name, infoid)) values = eval(res[0]) return values.get(value, None) @@ -46,7 +46,7 @@ n, n, self.db.arg), (infoid,)) res = self.cursor.fetchone() if not res: - raise KeyError, 'No such %s "%s"'%(self.name, infoid) + raise KeyError('No such %s "%s"'%(self.name, infoid)) return eval(res[0]) def set(self, infoid, **newvalues):
