Projet

Général

Profil

0039-misc-fix-unnecessary-pass-pylint-error-56982.patch

Valentin Deniaud, 21 septembre 2021 17:09

Télécharger (2,63 ko)

Voir les différences:

Subject: [PATCH 39/59] misc: fix unnecessary-pass pylint error (#56982)

 src/authentic2/backends/ldap_backend.py    | 1 -
 src/authentic2/idp/saml/saml2_endpoints.py | 1 -
 src/authentic2/manager/views.py            | 4 ----
 src/authentic2/saml/fields.py              | 2 --
 4 files changed, 8 deletions(-)
src/authentic2/backends/ldap_backend.py
831 831
                                    ' user'
832 832
                                )
833 833
                            user_login_failure(authz_id)
834
                            pass
835 834
                    else:
836 835
                        log.debug('user bind failed: invalid credentials')
837 836
                        if block['replicas']:
src/authentic2/idp/saml/saml2_endpoints.py
996 996
        logger.debug('artifact found')
997 997
    except ObjectDoesNotExist:
998 998
        logger.debug('no artifact found')
999
        pass
1000 999

  
1001 1000

  
1002 1001
@require_POST
src/authentic2/manager/views.py
433 433
):
434 434
    '''Base class for views showing a table of objects'''
435 435

  
436
    pass
437

  
438 436

  
439 437
class SubTableViewMixin(
440 438
    TableHookMixin,
......
457 455
class SimpleSubTableView(TitleMixin, SubTableViewMixin, TemplateView):
458 456
    '''Base class for views showing a simple table of objects related to one object'''
459 457

  
460
    pass
461

  
462 458

  
463 459
class BaseSubTableView(MultipleOUMixin, TitleMixin, SubTableViewMixin, FormNeedsRequest, FormView):
464 460
    '''Base class for views showing a table of objects related to one object'''
src/authentic2/saml/fields.py
60 60
    a pickled object or not (if the object is an instance of this class
61 61
    then it must [well, should] be a pickled one)."""
62 62

  
63
    pass
64

  
65 63

  
66 64
class PickledObjectField(models.Field):
67 65
    def __from_db_value(self, value):
68
-