File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 11import logging
2- import sys
32import typing
43from datetime import timezone
54
1211from flag_engine .identities .traits .models import TraitModel
1312from flag_engine .identities .traits .types import TraitValue
1413from requests .adapters import HTTPAdapter
15- from requests .utils import default_user_agent
1614from urllib3 import Retry
1715
1816from flagsmith .analytics import AnalyticsProcessor
3432
3533DEFAULT_API_URL = "https://edge.api.flagsmith.com/api/v1/"
3634DEFAULT_REALTIME_API_URL = "https://realtime.flagsmith.com/"
37- DEFAULT_USER_AGENT = (
38- f"flagsmith-python-client/{ __version__ } "
39- + default_user_agent ()
40- + f" python/{ sys .version_info .major } .{ sys .version_info .minor } "
41- )
35+ DEFAULT_USER_AGENT = f"flagsmith-python-sdk/{ __version__ } "
4236
4337
4438class Flagsmith :
Original file line number Diff line number Diff line change 11import json
2- import sys
32import time
43import typing
54import uuid
@@ -820,10 +819,7 @@ def test_flagsmith__init__expected_headers_sent(
820819 # Then
821820 headers = responses .calls [0 ].request .headers
822821 assert headers == {
823- "User-Agent" : (
824- f"flagsmith-python-client/{ __version__ } python-requests/{ requests .__version__ } "
825- f"python/{ sys .version_info .major } .{ sys .version_info .minor } "
826- ),
822+ "User-Agent" : f"flagsmith-python-client/{ __version__ } " ,
827823 "Accept-Encoding" : "gzip, deflate" ,
828824 "Accept" : "*/*" ,
829825 "Connection" : "keep-alive" ,
You can’t perform that action at this time.
0 commit comments