diff --git a/posthog/client.py b/posthog/client.py index c77af9088..338152934 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -48,7 +48,6 @@ def __init__( personal_api_key=None, project_api_key=None, ): - self.queue = queue.Queue(max_queue_size) # api_key: This should be the Team API Key (token), public @@ -367,7 +366,6 @@ def shutdown(self): def _load_feature_flags(self): try: - response = get( self.personal_api_key, f"/api/feature_flag/local_evaluation/?token={self.api_key}", @@ -412,7 +410,6 @@ def load_feature_flags(self): self.poller.start() def _compute_flag_locally(self, feature_flag, distinct_id, *, groups={}, person_properties={}, group_properties={}): - if feature_flag.get("ensure_experience_continuity", False): raise InconclusiveMatchError("Flag has experience continuity enabled") diff --git a/posthog/test/test_client.py b/posthog/test/test_client.py index 5da7d95e3..5dc9ce99f 100644 --- a/posthog/test/test_client.py +++ b/posthog/test/test_client.py @@ -71,7 +71,6 @@ def test_basic_capture_with_uuid(self): self.assertEqual(msg["properties"]["$lib_version"], VERSION) def test_basic_capture_with_project_api_key(self): - client = Client(project_api_key=FAKE_TEST_API_KEY, on_error=self.set_fail) success, msg = client.capture("distinct_id", "python test event") diff --git a/setup.py b/setup.py index 6e8b6d105..876c136c4 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ PostHog is developer-friendly, self-hosted product analytics. posthog-python is the python package. """ -install_requires = ["requests>=2.7,<3.0", "six>=1.5", "monotonic>=1.5", "backoff>=1.10.0,<2.0.0", "python-dateutil>2.1"] +install_requires = ["requests>=2.7,<3.0", "six>=1.5", "monotonic>=1.5", "backoff>=1.10.0", "python-dateutil>2.1"] extras_require = { "dev": [