From 301b8fb03a81447c5b5ab1ca991202e10826fbda Mon Sep 17 00:00:00 2001 From: Karen Petrosyan <92274156+karosis88@users.noreply.github.com> Date: Thu, 8 Jun 2023 16:32:18 +0400 Subject: [PATCH] Fix URLPattern examples (#2740) Co-authored-by: Tom Christie --- httpx/_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"))