Skip to content
Myr

Drop unneccessary 'sorted'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by Tom Christie · parent a770102 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:httpx/config.py+1 added-3 removed
248 unmodified lines
249 self.http_versions = set([http_versions.upper()])250 elif isinstance(http_versions, HTTPVersionConfig):251 self.http_versions = http_versions.http_versions252 else:253 self.http_versions = set(254 sorted([version.upper() for version in http_versions])255 )253 self.http_versions = set([version.upper() for version in http_versions])254255 for version in self.http_versions:256 if version not in ("HTTP/1.1", "HTTP/2"):257 raise ValueError(f"Unsupported HTTP version {version!r}.")
55 unmodified lines