From f9f6f24acd410382a2b22d19c8d2f4a9127368ec Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 23 May 2016 16:30:06 +0200 Subject: [PATCH] Add a alias for 'long' since python3 do not have it (#15952) --- lib/ansible/module_utils/facts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 96e6b49895..d333c6030c 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -67,6 +67,12 @@ else: def iteritems(d): return d.iteritems() +try: + # Python 2 + long +except NameError: + # Python 3 + long = int try: import selinux