Projet

Général

Profil

0005-trivial-fix-assignment-from-no-return-pylint-warning.patch

Frédéric Péters, 04 avril 2021 17:20

Télécharger (1,58 ko)

Voir les différences:

Subject: [PATCH 05/15] trivial: fix assignment-from-no-return pylint warning
 (#52732)

 pylint.rc      | 1 -
 wcs/formdef.py | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)
pylint.rc
8 8
disable=
9 9
    abstract-method,
10 10
    arguments-differ,
11
    assignment-from-no-return,
12 11
    attribute-defined-outside-init,
13 12
    broad-except,
14 13
    consider-using-dict-comprehension,
wcs/formdef.py
405 405
            # or if there are not yet any submitted forms
406 406
            if self.id is None or self.data_class().count() == 0:
407 407
                self.internal_identifier = new_internal_identifier
408
        t = StorableObject.store(self)
408
        StorableObject.store(self)
409 409
        if get_publisher().snapshot_class:
410 410
            get_publisher().snapshot_class.snap(instance=self, comment=comment)
411 411
        if get_publisher().is_using_postgresql():
......
413 413

  
414 414
            sql.do_formdef_tables(self, rebuild_views=True, rebuild_global_views=True)
415 415
        self.store_related_custom_views()
416
        return t
417 416

  
418 417
    def store_related_custom_views(self):
419 418
        for view in getattr(self, '_custom_views', []):
420
-