mirror of https://github.com/pallets/flask.git
[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
parent
1f027e498d
commit
45a0ff357f
|
@ -58,9 +58,9 @@ class EnvironBuilder(werkzeug.test.EnvironBuilder):
|
||||||
) -> None:
|
) -> None:
|
||||||
assert not (base_url or subdomain or url_scheme) or (
|
assert not (base_url or subdomain or url_scheme) or (
|
||||||
base_url is not None
|
base_url is not None
|
||||||
) != bool(
|
) != bool(subdomain or url_scheme), (
|
||||||
subdomain or url_scheme
|
'Cannot pass "subdomain" or "url_scheme" with "base_url".'
|
||||||
), 'Cannot pass "subdomain" or "url_scheme" with "base_url".'
|
)
|
||||||
|
|
||||||
if base_url is None:
|
if base_url is None:
|
||||||
http_host = app.config.get("SERVER_NAME") or "localhost"
|
http_host = app.config.get("SERVER_NAME") or "localhost"
|
||||||
|
|
Loading…
Reference in New Issue