Mercurial > p > roundup > code
diff roundup/backends/back_postgresql.py @ 3924:21d3d7eeea8c
assorted pyflakes fixes
I (re-)discovered pyflakes today and ran it over to roundup
code to see what it had to say. It reported a ton of "imported
module foo but you're not actually using it" warnings and a couple
of actual errors that this patch fixes.
The code was wrong but it was mostly stuff that never gets
executed...like hyperdb.Choice.
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Thu, 27 Sep 2007 06:12:57 +0000 |
| parents | 416606b09b27 |
| children | 97ae174f7a0e |
line wrap: on
line diff
--- a/roundup/backends/back_postgresql.py Wed Sep 26 14:09:59 2007 +0000 +++ b/roundup/backends/back_postgresql.py Thu Sep 27 06:12:57 2007 +0000 @@ -1,4 +1,4 @@ -#$Id: back_postgresql.py,v 1.41 2007-09-25 19:49:19 jpend Exp $ +#$Id: back_postgresql.py,v 1.42 2007-09-27 06:12:57 jpend Exp $ # # Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <andrey@micro.lt> # @@ -108,7 +108,7 @@ return 0 class Sessions(sessions_rdbms.Sessions): - def set(*args, **kwargs): + def set(self, *args, **kwargs): try: sessions_rdbms.Sessions.set(*args, **kwargs) except ProgrammingError, err:
