mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #13554 from Yannig/devel_fix_python3_tests
Use six lib to import urlparse properly.
This commit is contained in:
commit
d203438a2c
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import hmac
|
import hmac
|
||||||
import urlparse
|
|
||||||
|
try:
|
||||||
|
import urlparse
|
||||||
|
except ImportError:
|
||||||
|
import urllib.parse as urlparse
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from hashlib import sha1
|
from hashlib import sha1
|
||||||
|
|
Loading…
Reference in a new issue