Skip to content

Commit c124789

Browse files
committed
fix 2.7 import
1 parent 84a3f16 commit c124789

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integrations/stdlib/test_httplib.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22
import random
33
from textwrap import dedent
4-
from urllib.parse import urlencode
54

65
import pytest
76

@@ -21,10 +20,10 @@
2120

2221
try:
2322
# py3
24-
from urllib.parse import parse_qsl
23+
from urllib.parse import parse_qsl, urlencode
2524
except ImportError:
2625
# py2
27-
from urlparse import parse_qsl # type: ignore
26+
from urlparse import parse_qsl, urlencode # type: ignore
2827

2928
try:
3029
from unittest import mock # python 3.3 and above

0 commit comments

Comments
 (0)