Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Drop python-future requirement for split_results
Browse files Browse the repository at this point in the history
split_results does not need to import python-future's past module if
`long` is made equals to `int` on Python 3. Doing that allows dropping
the python-future requirement and make split_results able to run without
any extra python package being required.

Closes #137
  • Loading branch information
elyezer committed Aug 21, 2017
1 parent 49fb688 commit f7e24c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/spit_results.py
Expand Up @@ -18,13 +18,13 @@
import json
import sys
import xml
from past.builtins import long # pylint: disable=redefined-builtin
# pylint: disable=import-error
from ansible.module_utils.basic import AnsibleModule

# for parsing systemid
if sys.version_info > (3,):
import xmlrpc.client as xmlrpclib # pylint: disable=import-error
long = int # pylint: disable=invalid-name,redefined-builtin
else:
import xmlrpclib # pylint: disable=import-error

Expand Down

0 comments on commit f7e24c1

Please sign in to comment.