Skip to content

Commit

Permalink
Upgrade Python syntax with pyupgrade --py37-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 20, 2022
1 parent b38dfe4 commit 1e3d943
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion tests/main_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Main tldextract unit tests."""

import logging
Expand Down
2 changes: 1 addition & 1 deletion tldextract/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def looks_like_ip(maybe_ip):
except (AttributeError, UnicodeError):
if IP_RE.match(maybe_ip):
return True
except socket.error:
except OSError:
pass

return False
1 change: 0 additions & 1 deletion tldextract/tldextract.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""`tldextract` accurately separates the gTLD or ccTLD (generic or country code
top-level domain) from the registered domain and subdomains of a URL.
Expand Down

0 comments on commit 1e3d943

Please sign in to comment.