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

[Git][ftp-team/dak][master] 2 commits: SignatureHistory.from_signed_file: do not call `SignedFile.contents_sha1` property



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

  • d7174670
    by Ansgar at 2023-01-01T13:17:08+01:00
    SignatureHistory.from_signed_file: do not call `SignedFile.contents_sha1` property
    
    The property returns a `str` as originally intended since
    221281b360940cffdfdf6c46564451b8180de4a3.
    
  • ecebe093
    by Ansgar at 2023-01-01T13:17:11+01:00
    madison.py: use raw string for doc string
    
    Otherwise flake8 is unhappy about the escape sequence used for Sphinx.
    

2 changed files:

Changes:

  • daklib/dbconn.py
    ... ... @@ -1395,7 +1395,7 @@ class SignatureHistory(ORMObject):
    1395 1395
             self = cls()
    
    1396 1396
             self.fingerprint = signed_file.primary_fingerprint
    
    1397 1397
             self.signature_timestamp = signed_file.signature_timestamp
    
    1398
    -        self.contents_sha1 = signed_file.contents_sha1()
    
    1398
    +        self.contents_sha1 = signed_file.contents_sha1
    
    1399 1399
             return self
    
    1400 1400
     
    
    1401 1401
         def query(self, session):
    

  • dakweb/queries/madison.py
    ... ... @@ -15,7 +15,7 @@ from dakweb.webregister import QueryRegister
    15 15
     
    
    16 16
     @bottle.route('/madison')
    
    17 17
     def madison():
    
    18
    -    """
    
    18
    +    r"""
    
    19 19
         Display information about `package`\ (s).
    
    20 20
     
    
    21 21
         .. versionadded:: December 2014
    


  • Reply to: