From: dmontagu <35119617+dmontagu@users.noreply.github.com> Date: Mon, 14 Oct 2019 08:08:21 +0000 (-0700) Subject: Update datastructures.py X-Git-Tag: 0.12.11~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F673%2Fhead;p=thirdparty%2Fstarlette.git Update datastructures.py Fix assert error message in `URL.__init__` --- diff --git a/starlette/datastructures.py b/starlette/datastructures.py index 087a27f5..7be1f23a 100644 --- a/starlette/datastructures.py +++ b/starlette/datastructures.py @@ -44,7 +44,7 @@ class URL: if query_string: url += "?" + query_string.decode() elif components: - assert not url, 'Cannot set both "scope" and "**components".' + assert not url, 'Cannot set both "url" and "**components".' url = URL("").replace(**components).components.geturl() self._url = url