Skip to content

Commit

Permalink
TUF: Add Updater.__str__()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jussi Kukkonen committed Oct 21, 2020
1 parent 37f642b commit 23be41c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pip/_internal/network/tuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def __init__(self, index_url, metadata_dir, cache_dir):
self._cache_dir = cache_dir


def __str__(self):
return str(self._updater)


# Make sure we have refreshed metadata exactly once (we
# want all downloads to be done from a consistent repository)
# Raises NoWorkingMirrorError, ?
Expand Down

0 comments on commit 23be41c

Please sign in to comment.