Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Apr 17, 2024
1 parent 396b401 commit b109aca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion posthog/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "posthog.settings")
os.environ.setdefault('SERVER_GATEWAY_INTERFACE', 'ASGI')
os.environ.setdefault("SERVER_GATEWAY_INTERFACE", "ASGI")

application = get_asgi_application()
2 changes: 1 addition & 1 deletion posthog/settings/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def traces_sampler(sampling_context: dict) -> float:
path = sampling_context.get("asgi_scope", {}).get("path")
headers = sampling_context.get("asgi_scope", {}).get("headers", [])
for name, value in headers:
if name.lower().replace(b'_',b'-') == "force-sample":
if name.lower().replace(b"_", b"-") == "force-sample":
force_sample = bool(value)

# HTTP header to force sampling set
Expand Down
2 changes: 1 addition & 1 deletion posthog/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "posthog.settings")
os.environ.setdefault('SERVER_GATEWAY_INTERFACE', 'WSGI')
os.environ.setdefault("SERVER_GATEWAY_INTERFACE", "WSGI")

application = get_wsgi_application()

0 comments on commit b109aca

Please sign in to comment.