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

[Git][ftp-team/dak][master] also convert `SignedFile.contents_sha1` into a property



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

  • 0b2d4b94
    by Ansgar at 2023-01-01T13:43:21+01:00
    also convert `SignedFile.contents_sha1` into a property
    

2 changed files:

Changes:

  • daklib/gpg.py
    ... ... @@ -319,7 +319,8 @@ class SignedFile:
    319 319
                     pass
    
    320 320
                 os._exit(3)
    
    321 321
     
    
    322
    -    def contents_sha1(self):
    
    322
    +    @property
    
    323
    +    def contents_sha1(self) -> str:
    
    323 324
             return apt_pkg.sha1sum(self.contents)
    
    324 325
     
    
    325 326
     
    

  • daklib/upload.py
    ... ... @@ -299,7 +299,7 @@ class Changes:
    299 299
     
    
    300 300
         @property
    
    301 301
         def contents_sha1(self) -> str:
    
    302
    -        return self.signature.contents_sha1()
    
    302
    +        return self.signature.contents_sha1
    
    303 303
     
    
    304 304
         @property
    
    305 305
         def architectures(self) -> list[str]:
    


  • Reply to: