10000 remove self.app_user_agent attribute, as it's not used outside of init · jku/python-tuf@d67f126 · GitHub
[go: up one dir, main page]

Skip to content

Commit d67f126

Browse files
committed
remove self.app_user_agent attribute, as it's not used outside of init
Signed-off-by: NicholasTanz <nicholastanzillo@gmail.com>
1 parent 86cc7ad commit d67f126

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tuf/ngclient/_internal/urllib3_fetcher.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ def __init__(
4343
# Default settings
4444
self.socket_timeout: int = socket_timeout # seconds
4545
self.chunk_size: int = chunk_size # bytes
46-
self.app_user_agent = app_user_agent
4746

4847
# Create User-Agent.
4948
ua = f"python-tuf/{tuf.__version__}"
50-
if self.app_user_agent is not None:
51-
ua = f"{self.app_user_agent} {ua}"
49+
if app_user_agent is not None:
50+
ua = f"{app_user_agent} {ua}"
5251

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

0 commit comments

Comments
 (0)
0