From: Karen Petrosyan <92274156+karosis88@users.noreply.github.com> Date: Thu, 8 Jun 2023 12:32:18 +0000 (+0400) Subject: Fix URLPattern examples (#2740) X-Git-Tag: 0.25.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301b8fb03a81447c5b5ab1ca991202e10826fbda;p=thirdparty%2Fhttpx.git Fix URLPattern examples (#2740) Co-authored-by: Tom Christie --- diff --git a/httpx/_utils.py b/httpx/_utils.py index a3a045da..1775b1a1 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -357,12 +357,12 @@ class URLPattern: A utility class currently used for making lookups against proxy keys... # Wildcard matching... - >>> pattern = URLPattern("all") + >>> pattern = URLPattern("all://") >>> pattern.matches(httpx.URL("http://example.com")) True # Witch scheme matching... - >>> pattern = URLPattern("https") + >>> pattern = URLPattern("https://") >>> pattern.matches(httpx.URL("https://example.com")) True >>> pattern.matches(httpx.URL("http://example.com"))