From a5ed870ba7eda275a434276a339ac3688bdd1c15 Mon Sep 17 00:00:00 2001 From: John Kurkowski Date: Wed, 13 Sep 2023 17:12:59 -0700 Subject: [PATCH] Fix lingering docs TypeError --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1aed2dc..0dca2a7f 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,10 @@ or suffix were found: ```python >>> ext = tldextract.extract('http://127.0.0.1:8080/deployed/') >>> # this has unwanted dots ->>> '.'.join(ext) +>>> '.'.join(ext[:3]) '.127.0.0.1.' >>> # join each part only if it's truthy ->>> '.'.join(part for part in ext if part) +>>> '.'.join(part for part in ext[:3] if part) '127.0.0.1' ```