[BioPython] bug in DatabaseRemover class.

Brad Chapman chapmanb at uga.edu
Wed Aug 4 09:32:15 EDT 2004


Hi Cristian;

> I just find a little bug in DatabaseRemover class, defined in
> BioSQL.Loader module.
> 
> The remove() function call the adaptor.execute function as:
> 
> self.adaptor.execute(sql, (self.dbid))
> 
> Python understand it as an element and not as a tuple of one element.
> You must call these function in the following way:
> 
> self.adaptor.execute(sql, (self.dbid,))

Thanks for the bug report. This is fixed in CVS. Much appreciated!
Brad


More information about the BioPython mailing list