Skip to content

Commit

Permalink
Fix Python 3.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Jan 2, 2024
1 parent 852e343 commit e03348f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/treq/content.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import json
from typing import (
Any, Callable, Final, FrozenSet, List, Optional, cast
)
from typing import Any, Callable, FrozenSet, List, Optional, cast

from twisted.internet.defer import Deferred, succeed
from twisted.internet.protocol import Protocol, connectionDone
Expand All @@ -18,7 +16,7 @@
See https://www.rfc-editor.org/errata/eid5433
"""
_MIME_CHARSET_CHARS: Final[FrozenSet[str]] = frozenset(
_MIME_CHARSET_CHARS: FrozenSet[str] = frozenset(
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" # ALPHA
"0123456789" # DIGIT
"!#$%&+-^_`~" # symbols
Expand Down

0 comments on commit e03348f

Please sign in to comment.