change urllib to six.moves for python2/3 support

ref: http://ansible-manual.readthedocs.io/en/stable-2.2/dev_guide/developing_modules_python3.html
This commit is contained in:
Tim Buschmann
2018-02-24 22:31:11 +01:00
committed by GitHub
parent 4fa1048430
commit a5660940a3

3
aur.py
View File

@@ -2,7 +2,8 @@
from ansible.module_utils.basic import *
import json
import urllib.request
from ansible.module_utils import six
from six.moves import urllib
import tarfile
import os
import os.path