Skip to content

Commit 685e547

Browse files
committed
Use ipaddress from standard library
1 parent 05f5309 commit 685e547

File tree

3 files changed

+1
-2424
lines changed

3 files changed

+1
-2424
lines changed

readthedocs/analytics/utils.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Utilities related to analytics"""
22

33
import hashlib
4+
import ipaddress
45
import logging
56

67
import requests
@@ -10,12 +11,6 @@
1011
from user_agents import parse
1112

1213

13-
try:
14-
# Python 3.3+ only
15-
import ipaddress
16-
except ImportError:
17-
from .vendor import ipaddress
18-
1914
log = logging.getLogger(__name__) # noqa
2015

2116

readthedocs/analytics/vendor/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)