Skip to content

Commit

Permalink
Fix lingering docs TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed Sep 14, 2023
1 parent 789f6ef commit a5ed870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```

Expand Down

0 comments on commit a5ed870

Please sign in to comment.