Skip to content

Commit

Permalink
Run pyupgrade --py313-plus on analytics/
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Jan 7, 2025
1 parent c246c09 commit 83d190b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analytics/analytics/settings/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def _filter_favicon_requests(record: logging.LogRecord) -> bool:
if record.name == "django.request":
request: Optional[HttpRequest] = getattr(record, "request", None)
request: HttpRequest | None = getattr(record, "request", None)
if request and request.path == "/favicon.ico":
return False

Expand Down
2 changes: 1 addition & 1 deletion analytics/analytics/settings/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def string_to_bool(value: str) -> bool:
if normalized_value in false_values:
return False

raise ValueError("Cannot interpret " "boolean value {0!r}".format(value))
raise ValueError("Cannot interpret " "boolean value {!r}".format(value))

0 comments on commit 83d190b

Please sign in to comment.