diff --git a/pydruid/client.py b/pydruid/client.py index 5757aaac..9c058321 100755 --- a/pydruid/client.py +++ b/pydruid/client.py @@ -15,7 +15,8 @@ # import json import re -import urllib +import urllib.error +import urllib.request from base64 import b64encode from pydruid.query import QueryBuilder diff --git a/tests/test_client.py b/tests/test_client.py index 440a9204..5894cad2 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,6 +1,6 @@ # -*- coding: UTF-8 -*- import textwrap -import urllib +import urllib.error from io import StringIO from unittest.mock import Mock, patch