mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Some beginning python3 porting for modules which have unittests
This commit is contained in:
parent
8397c8169c
commit
5f0dc2b90f
2 changed files with 10 additions and 3 deletions
|
@ -528,7 +528,12 @@ import sys
|
|||
import json
|
||||
import os
|
||||
import shlex
|
||||
from urlparse import urlparse
|
||||
try:
|
||||
from urlparse import urlparse
|
||||
except ImportError:
|
||||
# python3
|
||||
from urllib.parse import urlparse
|
||||
|
||||
try:
|
||||
import docker.client
|
||||
import docker.utils
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue