diff options
| author | Petr Viktorin <pviktori@redhat.com> | 2015-10-08 15:39:14 +0200 |
|---|---|---|
| committer | Tomas Babej <tbabej@redhat.com> | 2015-10-13 14:16:32 +0200 |
| commit | f67155486b1d3b05a37c9278652bc8f0604bd14d (patch) | |
| tree | cf157edc5f14c37b9bdd19541b0bad39e7760d91 /ipapython | |
| parent | 5f7c206e74505d75554a5ff502b2e1fbe4878fd2 (diff) | |
| download | freeipa-f67155486b1d3b05a37c9278652bc8f0604bd14d.tar.gz freeipa-f67155486b1d3b05a37c9278652bc8f0604bd14d.tar.xz freeipa-f67155486b1d3b05a37c9278652bc8f0604bd14d.zip | |
Alias long to int under Python 3
In py3, the two types are unified under the name "int".
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipapython')
| -rw-r--r-- | ipapython/install/cli.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipapython/install/cli.py b/ipapython/install/cli.py index ce64baa5f..a9efa74f3 100644 --- a/ipapython/install/cli.py +++ b/ipapython/install/cli.py @@ -10,6 +10,8 @@ import collections import optparse import signal +import six + from ipapython import admintool, ipa_log_manager from ipapython.ipautil import CheckedIPAddress, private_ccache @@ -17,6 +19,9 @@ from . import core, common __all__ = ['install_tool', 'uninstall_tool'] +if six.PY3: + long = int + def install_tool(configurable_class, command_name, log_file_name, positional_arguments=None, usage=None, debug_option=False, |
