Remove six.PY3

The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3

Change-Id: I1854595e1022e284b3102b6d34bcbc0e9ddded8c
This commit is contained in:
likui 2020-09-18 14:10:55 +08:00
parent f9e5844cb5
commit 0425d7e7fd
1 changed files with 3 additions and 4 deletions

View File

@ -18,14 +18,13 @@ import ast
import json
import os
import re
import six
from ansible import errors
# cmp() doesn't exist on python3
if six.PY3:
def cmp(a, b):
return 0 if a == b else 1
def cmp(a, b):
return 0 if a == b else 1
class FilterModule(object):