[elbe-devel] [PATCH 21/40] pylint: db - fix unused parameter p

Torben Hohn torben.hohn at linutronix.de
Thu Sep 20 13:00:57 CEST 2018


this code really makes me unhappy.
anyways, cleaning this up properly is out of scope
right now. 


On Fri, Sep 14, 2018 at 01:56:33PM +0200, Manuel Traut wrote:
> Signed-off-by: Manuel Traut <manut at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/db.py | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/elbepack/db.py b/elbepack/db.py
> index 334207ad..bf1dba3f 100644
> --- a/elbepack/db.py
> +++ b/elbepack/db.py
> @@ -764,8 +764,7 @@ class ElbeDB(object):
>      def add_project_file(self, builddir, name, mime_type, description=None):
>          with session_scope(self.session) as s:
>              try:
> -                p = s.query(Project).filter(Project.builddir == builddir).\
> -                    one()
> +                s.query(Project).filter(Project.builddir == builddir).one()
>              except NoResultFound:
>                  raise ElbeDBError(
>                      "project %s is not registered in the database" %
> -- 
> 2.19.0.rc2
> 

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180920/5ce47499/attachment.sig>


More information about the elbe-devel mailing list