Skip to content

Commit b48507c

Browse files
Use isdecimal() instead of isdigit() (#352)
1 parent d89554d commit b48507c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tldextract/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _schemeless_url(url: str) -> str:
5555

5656
def looks_like_ip(maybe_ip: str) -> bool:
5757
"""Check whether the given str looks like an IPv4 address."""
58-
if not maybe_ip[0].isdigit():
58+
if not maybe_ip[0].isdecimal():
5959
return False
6060

6161
return IP_RE.fullmatch(maybe_ip) is not None

0 commit comments

Comments
 (0)