Fix python version check issue (#24063)

Fix python version check issue
This commit is contained in:
Ganesh Nalawade 2017-04-27 20:10:58 +05:30 committed by GitHub
parent 2716fad38f
commit 1f7c2c63c2

View file

@ -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: