Skip to content

Commit 2d79d34

Browse files
author
Gaetano Guerriero
committed
add missing urllib submodules imports
1 parent 8e43199 commit 2d79d34

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pydruid/client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
#
1616
import json
1717
import re
18-
import urllib
18+
import urllib.error
19+
import urllib.request
1920
from base64 import b64encode
2021

2122
from pydruid.query import QueryBuilder

tests/test_client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: UTF-8 -*-
22
import textwrap
3-
import urllib
3+
import urllib.error
44
from io import StringIO
55
from unittest.mock import Mock, patch
66

@@ -89,8 +89,8 @@ def test_druid_returns_html_error(self, mock_urlopen):
8989
str(e.value)
9090
== textwrap.dedent(
9191
"""
92-
HTTP Error 500: Internal Server Error
93-
Druid Error: javax.servlet.ServletException: java.lang.OutOfMemoryError: GC overhead limit exceeded
92+
HTTP Error 500: Internal Server Error
93+
Druid Error: javax.servlet.ServletException: java.lang.OutOfMemoryError: GC overhead limit exceeded
9494
Query is: {
9595
"aggregations": [
9696
{

0 commit comments

Comments
 (0)