From 1f7c2c63c29774d9b3d6c8cdcd30e1582935999f Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Thu, 27 Apr 2017 20:10:58 +0530 Subject: [PATCH] Fix python version check issue (#24063) Fix python version check issue --- lib/ansible/modules/network/junos/junos_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index a335e1e318..e26067f200 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -196,7 +196,7 @@ from ansible.module_utils.junos import check_args as junos_check_args from ansible.module_utils.netconf import send_request from ansible.module_utils.six import string_types -if sys.version < (2, 7): +if sys.version_info < (2, 7): from xml.parsers.expat import ExpatError ParseError = ExpatError else: