[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] daklib/dbconn.py: add `__hash__` where a custom `__eq__` is provided



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • daklib/dbconn.py
    ... ... @@ -556,6 +556,8 @@ class Component(ORMObject):
    556 556
             # This signals to use the normal comparison operator
    
    557 557
             return NotImplemented
    
    558 558
     
    
    559
    +    __hash__ = ORMObject.__hash__
    
    560
    +
    
    559 561
         def properties(self):
    
    560 562
             return ['component_name', 'component_id', 'description',
    
    561 563
                 'meets_dfsg', 'overrides_count']
    
    ... ... @@ -1438,6 +1440,8 @@ class Priority(ORMObject):
    1438 1440
             # This signals to use the normal comparison operator
    
    1439 1441
             return NotImplemented
    
    1440 1442
     
    
    1443
    +    __hash__ = ORMObject.__hash__
    
    1444
    +
    
    1441 1445
     
    
    1442 1446
     __all__.append('Priority')
    
    1443 1447
     
    
    ... ... @@ -1794,6 +1798,8 @@ class Suite(ORMObject):
    1794 1798
             # This signals to use the normal comparison operator
    
    1795 1799
             return NotImplemented
    
    1796 1800
     
    
    1801
    +    __hash__ = ORMObject.__hash__
    
    1802
    +
    
    1797 1803
         def details(self):
    
    1798 1804
             ret = []
    
    1799 1805
             for disp, field in SUITE_FIELDS:
    
    ... ... @@ -1963,6 +1969,8 @@ class Uid(ORMObject):
    1963 1969
             # This signals to use the normal comparison operator
    
    1964 1970
             return NotImplemented
    
    1965 1971
     
    
    1972
    +    __hash__ = ORMObject.__hash__
    
    1973
    +
    
    1966 1974
         def properties(self):
    
    1967 1975
             return ['uid', 'name', 'fingerprint']
    
    1968 1976
     
    


  • Reply to: