Skip to content

Commit

Permalink
Merge pull request #923 from lukpueh/fix-pylint-warnings
Browse files Browse the repository at this point in the history
Fix failing builds due to pylint 2.4.0 update
  • Loading branch information
lukpueh authored Sep 24, 2019
2 parents 6b4269c + 3f417b3 commit b33ac56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tuf/client/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,6 @@ def _update_metadata(self, metadata_role, upperbound_filelength, version=None):
# Construct the metadata filename as expected by the download/mirror
# modules.
metadata_filename = metadata_role + '.json'
metadata_filename = metadata_filename

# Attempt a file download from each mirror until the file is downloaded and
# verified. If the signature of the downloaded file is valid, proceed,
Expand Down
2 changes: 1 addition & 1 deletion tuf/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def filter(self, record):
# file logging handler, the user may always consult the file log for the
# original exception traceback. The exc_info is explained here:
# http://docs.python.org/2/library/sys.html#sys.exc_info
exc_type, junk, junk = record.exc_info
exc_type, _, _ = record.exc_info

# Simply set the class name as the exception text.
record.exc_text = exc_type.__name__
Expand Down

0 comments on commit b33ac56

Please sign in to comment.