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 1
1
import logging
2
- import sys
3
2
import typing
4
3
from datetime import timezone
5
4
12
11
from flag_engine .identities .traits .models import TraitModel
13
12
from flag_engine .identities .traits .types import TraitValue
14
13
from requests .adapters import HTTPAdapter
15
- from requests .utils import default_user_agent
16
14
from urllib3 import Retry
17
15
18
16
from flagsmith .analytics import AnalyticsProcessor
34
32
35
33
DEFAULT_API_URL = "https://edge.api.flagsmith.com/api/v1/"
36
34
DEFAULT_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__ } "
42
36
43
37
44
38
class Flagsmith :
Original file line number Diff line number Diff line change 1
1
import json
2
- import sys
3
2
import time
4
3
import typing
5
4
import uuid
@@ -820,10 +819,7 @@ def test_flagsmith__init__expected_headers_sent(
820
819
# Then
821
820
headers = responses .calls [0 ].request .headers
822
821
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-sdk/{ __version__ } " ,
827
823
"Accept-Encoding" : "gzip, deflate" ,
828
824
"Accept" : "*/*" ,
829
825
"Connection" : "keep-alive" ,
You can’t perform that action at this time.
0 commit comments