diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-08-12 12:07:52 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-01 11:42:01 +0200 |
commit | fbacc26a6a8b92f4b3570c411b186ab86cbcc1b1 (patch) | |
tree | 0216c07e276d4441e834a964516d2880858d4650 /ipapython/ipaldap.py | |
parent | c27cb295a586cdc1f1cc9b933829db471e5100ed (diff) | |
download | freeipa-fbacc26a6a8b92f4b3570c411b186ab86cbcc1b1.tar.gz freeipa-fbacc26a6a8b92f4b3570c411b186ab86cbcc1b1.tar.xz freeipa-fbacc26a6a8b92f4b3570c411b186ab86cbcc1b1.zip |
Use six.integer_types instead of (long, int)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython/ipaldap.py')
-rw-r--r-- | ipapython/ipaldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 66622ef61..705d694b2 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -831,7 +831,7 @@ class LDAPClient(object): return 'TRUE' else: return 'FALSE' - elif isinstance(val, (unicode, float, int, long, Decimal, DN)): + elif isinstance(val, (unicode, six.integer_types, long, Decimal, DN)): return value_to_utf8(val) elif isinstance(val, DNSName): return str(val) |