]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix URLPattern examples (#2740)
authorKaren Petrosyan <92274156+karosis88@users.noreply.github.com>
Thu, 8 Jun 2023 12:32:18 +0000 (16:32 +0400)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 12:32:18 +0000 (15:32 +0300)
Co-authored-by: Tom Christie <tom@tomchristie.com>
httpx/_utils.py

index a3a045da05601811bdea1bba67b6705f53f4ffe4..1775b1a1ef9af54a4606c213718f74421e347fa6 100644 (file)
@@ -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"))