Mercurial > p > roundup > code
comparison roundup/backends/rdbms_common.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 | 666b70676ec6 |
| children | 603ec9630b08 |
comparison
equal
deleted
inserted
replaced
| 3923:d02aad94af5a | 3924:21d3d7eeea8c |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 #$Id: rdbms_common.py,v 1.190 2007-09-16 06:51:48 jpend Exp $ | 18 #$Id: rdbms_common.py,v 1.191 2007-09-27 06:12:57 jpend Exp $ |
| 19 """ Relational database (SQL) backend common code. | 19 """ Relational database (SQL) backend common code. |
| 20 | 20 |
| 21 Basics: | 21 Basics: |
| 22 | 22 |
| 23 - map roundup classes to relational tables | 23 - map roundup classes to relational tables |
| 635 Drop the journal and multilink tables too. | 635 Drop the journal and multilink tables too. |
| 636 """ | 636 """ |
| 637 properties = spec[1] | 637 properties = spec[1] |
| 638 # figure the multilinks | 638 # figure the multilinks |
| 639 mls = [] | 639 mls = [] |
| 640 for propanme, prop in properties: | 640 for propname, prop in properties: |
| 641 if isinstance(prop, Multilink): | 641 if isinstance(prop, Multilink): |
| 642 mls.append(propname) | 642 mls.append(propname) |
| 643 | 643 |
| 644 # drop class table and indexes | 644 # drop class table and indexes |
| 645 self.drop_class_table_indexes(cn, spec[0]) | 645 self.drop_class_table_indexes(cn, spec[0]) |
