Skip to content

Commit

Permalink
remove self.app_user_agent attribute, as it's not used outside of init
Browse files Browse the repository at this point in the history
Signed-off-by: NicholasTanz <[email protected]>
  • Loading branch information
NicholasTanz committed Feb 5, 2025
1 parent 86cc7ad commit d67f126
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tuf/ngclient/_internal/urllib3_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ def __init__(
# Default settings
self.socket_timeout: int = socket_timeout # seconds
self.chunk_size: int = chunk_size # bytes
self.app_user_agent = app_user_agent

# Create User-Agent.
ua = f"python-tuf/{tuf.__version__}"
if self.app_user_agent is not None:
ua = f"{self.app_user_agent} {ua}"
if app_user_agent is not None:
ua = f"{app_user_agent} {ua}"

self._poolManager = urllib3.PoolManager(headers={"User-Agent": ua})

Expand Down

0 comments on commit d67f126

Please sign in to comment.