mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add absolute_import future imports
Add absolute_import from __future__ so that pylint does not fail and to achieve python3 behavior in python2. Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
2de1aa27f9
commit
b5bdd07bc5
@ -19,6 +19,7 @@
|
|||||||
"""
|
"""
|
||||||
Password migration script
|
Password migration script
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import cgi
|
import cgi
|
||||||
import errno
|
import errno
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
"""
|
"""
|
||||||
WSGI appliction for IPA server.
|
WSGI appliction for IPA server.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
"""
|
"""
|
||||||
Plugin index generation script
|
Plugin index generation script
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaclient.install import client
|
from ipaclient.install import client
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
from ipapython.install import cli
|
from ipapython.install import cli
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import operator
|
import operator
|
||||||
import socket
|
import socket
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
# This is used so we can add tracking to the Apache and 389-ds
|
# This is used so we can add tracking to the Apache and 389-ds
|
||||||
# server certificates created during the IPA server installation.
|
# server certificates created during the IPA server installation.
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
# parts of the system configuration to the way it was
|
# parts of the system configuration to the way it was
|
||||||
# before ipa-server-install was first run
|
# before ipa-server-install was first run
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
"""Meta import hook for ipaplatform.
|
"""Meta import hook for ipaplatform.
|
||||||
|
|
||||||
Known Linux distros with /etc/os-release
|
Known Linux distros with /etc/os-release
|
||||||
|
@ -23,6 +23,8 @@ This base module contains default implementations of IPA interface for
|
|||||||
interacting with system services.
|
interacting with system services.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
This module contains default platform-specific implementations of system tasks.
|
This module contains default platform-specific implementations of system tasks.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from pkg_resources import parse_version
|
from pkg_resources import parse_version
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#
|
#
|
||||||
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.constants.
|
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.constants.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import ipaplatform._importhook
|
import ipaplatform._importhook
|
||||||
|
|
||||||
ipaplatform._importhook.fixup_module('ipaplatform.constants')
|
ipaplatform._importhook.fixup_module('ipaplatform.constants')
|
||||||
|
@ -7,6 +7,8 @@ This Debian family platform module exports platform dependant constants.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
# Fallback to default path definitions
|
# Fallback to default path definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.base.constants import BaseConstantsNamespace
|
from ipaplatform.base.constants import BaseConstantsNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@ in Debian-based systems.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Fallback to default path definitions
|
# Fallback to default path definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.base.paths import BasePathNamespace
|
from ipaplatform.base.paths import BasePathNamespace
|
||||||
import sysconfig
|
import sysconfig
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
Contains Debian-specific service class implementations.
|
Contains Debian-specific service class implementations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.base import services as base_services
|
from ipaplatform.base import services as base_services
|
||||||
from ipaplatform.redhat import services as redhat_services
|
from ipaplatform.redhat import services as redhat_services
|
||||||
from ipapython import ipautil
|
from ipapython import ipautil
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
This module contains default Debian-specific implementations of system tasks.
|
This module contains default Debian-specific implementations of system tasks.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.base.tasks import BaseTaskNamespace
|
from ipaplatform.base.tasks import BaseTaskNamespace
|
||||||
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
||||||
|
|
||||||
|
@ -7,6 +7,8 @@ This Fedora base platform module exports platform related constants.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
# Fallback to default constant definitions
|
# Fallback to default constant definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat.constants import RedHatConstantsNamespace
|
from ipaplatform.redhat.constants import RedHatConstantsNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ in Fedora-based systems.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
# Fallback to default path definitions
|
# Fallback to default path definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat.paths import RedHatPathNamespace
|
from ipaplatform.redhat.paths import RedHatPathNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
Contains Fedora-specific service class implementations.
|
Contains Fedora-specific service class implementations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat import services as redhat_services
|
from ipaplatform.redhat import services as redhat_services
|
||||||
|
|
||||||
# Mappings from service names as FreeIPA code references to these services
|
# Mappings from service names as FreeIPA code references to these services
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
This module contains default Fedora-specific implementations of system tasks.
|
This module contains default Fedora-specific implementations of system tasks.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#
|
#
|
||||||
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.paths.
|
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.paths.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import ipaplatform._importhook
|
import ipaplatform._importhook
|
||||||
|
|
||||||
ipaplatform._importhook.fixup_module('ipaplatform.paths')
|
ipaplatform._importhook.fixup_module('ipaplatform.paths')
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
from ipapython import ipautil
|
from ipapython import ipautil
|
||||||
from ipapython.admintool import ScriptError
|
from ipapython.admintool import ScriptError
|
||||||
|
@ -8,6 +8,8 @@ related constants for the Red Hat OS family-based systems.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
# Fallback to default path definitions
|
# Fallback to default path definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.base.constants import BaseConstantsNamespace
|
from ipaplatform.base.constants import BaseConstantsNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ This Red Hat OS family base platform module exports default filesystem paths as
|
|||||||
common in Red Hat OS family-based systems.
|
common in Red Hat OS family-based systems.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Fallback to default path definitions
|
# Fallback to default path definitions
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
Contains Red Hat OS family-specific service class implementations.
|
Contains Red Hat OS family-specific service class implementations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
This module contains default Red Hat OS family-specific implementations of
|
This module contains default Red Hat OS family-specific implementations of
|
||||||
system tasks.
|
system tasks.
|
||||||
'''
|
'''
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import ctypes
|
import ctypes
|
||||||
import logging
|
import logging
|
||||||
|
@ -7,6 +7,8 @@ This RHEL base platform module exports platform related constants.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
# Fallback to default constant definitions
|
# Fallback to default constant definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat.constants import RedHatConstantsNamespace
|
from ipaplatform.redhat.constants import RedHatConstantsNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ in RHEL-based systems.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
# Fallback to default path definitions
|
# Fallback to default path definitions
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat.paths import RedHatPathNamespace
|
from ipaplatform.redhat.paths import RedHatPathNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
Contains RHEL-specific service class implementations.
|
Contains RHEL-specific service class implementations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat import services as redhat_services
|
from ipaplatform.redhat import services as redhat_services
|
||||||
|
|
||||||
# Mappings from service names as FreeIPA code references to these services
|
# Mappings from service names as FreeIPA code references to these services
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
This module contains default RHEL-specific implementations of system tasks.
|
This module contains default RHEL-specific implementations of system tasks.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#
|
#
|
||||||
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.services.
|
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.services.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import ipaplatform._importhook
|
import ipaplatform._importhook
|
||||||
|
|
||||||
ipaplatform._importhook.fixup_module('ipaplatform.services')
|
ipaplatform._importhook.fixup_module('ipaplatform.services')
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#
|
#
|
||||||
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.tasks.
|
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.tasks.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import ipaplatform._importhook
|
import ipaplatform._importhook
|
||||||
|
|
||||||
ipaplatform._importhook.fixup_module('ipaplatform.tasks')
|
ipaplatform._importhook.fixup_module('ipaplatform.tasks')
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
import logging
|
import logging
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from ipalib import api
|
from ipalib import api
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipalib.plugable import Registry
|
from ipalib.plugable import Registry
|
||||||
from ipaplatform import services
|
from ipaplatform import services
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
# Make sure we only run this module at the server where samba4-python
|
# Make sure we only run this module at the server where samba4-python
|
||||||
# package is installed to avoid issues with unavailable modules
|
# package is installed to avoid issues with unavailable modules
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import ldap.dn
|
import ldap.dn
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
from binascii import hexlify
|
from binascii import hexlify
|
||||||
import collections
|
import collections
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import os
|
import os
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
AD trust installer module
|
AD trust installer module
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
CA installer module
|
CA installer module
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import enum
|
import enum
|
||||||
import logging
|
import logging
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import binascii
|
import binascii
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright (C) 2015 FreeIPa Project Contributors, see 'COPYING' for license.
|
# Copyright (C) 2015 FreeIPa Project Contributors, see 'COPYING' for license.
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import errno
|
import errno
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
# TODO
|
# TODO
|
||||||
# save undo files?
|
# save undo files?
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import base64
|
import base64
|
||||||
import datetime
|
import datetime
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipapython.install import cli
|
from ipapython.install import cli
|
||||||
from ipapython.install.core import knob, extend_knob
|
from ipapython.install.core import knob, extend_knob
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipapython.install import cli
|
from ipapython.install import cli
|
||||||
from ipapython.install.core import extend_knob
|
from ipapython.install.core import extend_knob
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ipalib import api
|
from ipalib import api
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import gssapi
|
import gssapi
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
KRA installer module
|
KRA installer module
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import pwd
|
import pwd
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import pwd
|
import pwd
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import pwd
|
import pwd
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ipaserver.install import installutils, cainstance
|
from ipaserver.install import installutils, cainstance
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ipalib import errors
|
from ipalib import errors
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ipalib.plugable import Registry
|
from ipalib.plugable import Registry
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -17,8 +17,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import logging
|
import logging
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import logging
|
import logging
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import ldif
|
import ldif
|
||||||
|
@ -239,6 +239,8 @@ digits and nothing else follows.
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
@ -27,6 +27,8 @@ Backend plugin for LDAP.
|
|||||||
# binding encodes them into the appropriate representation. This applies to
|
# binding encodes them into the appropriate representation. This applies to
|
||||||
# everything except the CrudBackend methods, where dn is part of the entry dict.
|
# everything except the CrudBackend methods, where dn is part of the entry dict.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from ldap import MOD_ADD
|
from ldap import MOD_ADD
|
||||||
|
@ -30,6 +30,8 @@ certificates via the following methods:
|
|||||||
* `ra.take_certificate_off_hold()` - take a certificate off hold.
|
* `ra.take_certificate_off_hold()` - take a certificate off hold.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ipalib import Backend
|
from ipalib import Backend
|
||||||
from ipalib import errors
|
from ipalib import errors
|
||||||
import os
|
import os
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import dbus
|
import dbus
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import posixpath
|
import posixpath
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from time import gmtime, strftime
|
from time import gmtime, strftime
|
||||||
|
@ -23,6 +23,8 @@ RPC server.
|
|||||||
Also see the `ipalib.rpc` module.
|
Also see the `ipalib.rpc` module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from xml.sax.saxutils import escape
|
from xml.sax.saxutils import escape
|
||||||
import os
|
import os
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
# pylint: disable=relative-import
|
# pylint: disable=relative-import
|
||||||
from custodia.message.kem import KEMClient, KEY_USAGE_SIG, KEY_USAGE_ENC
|
from custodia.message.kem import KEMClient, KEY_USAGE_SIG, KEY_USAGE_ENC
|
||||||
# pylint: enable=relative-import
|
# pylint: enable=relative-import
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
from base64 import b64encode, b64decode
|
from base64 import b64encode, b64decode
|
||||||
from custodia.store.interface import CSStore # pylint: disable=relative-import
|
from custodia.store.interface import CSStore # pylint: disable=relative-import
|
||||||
from jwcrypto.common import json_decode, json_encode
|
from jwcrypto.common import json_decode, json_encode
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
"""Pytest plugin for IPA Integration tests"""
|
"""Pytest plugin for IPA Integration tests"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
"""Common tasks for FreeIPA integration tests"""
|
"""Common tasks for FreeIPA integration tests"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import textwrap
|
import textwrap
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
Base class for all cmdline tests
|
Base class for all cmdline tests
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import distutils.spawn
|
import distutils.spawn
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
Test `ipa-getkeytab`
|
Test `ipa-getkeytab`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
Test the `ipaserver/install/ldapupdate.py` module.
|
Test the `ipaserver/install/ldapupdate.py` module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function, absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import dns.dnssec
|
import dns.dnssec
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import six
|
import six
|
||||||
from ipatests.pytest_plugins.integration import tasks
|
from ipatests.pytest_plugins.integration import tasks
|
||||||
from ipatests.test_integration.base import IntegrationTest
|
from ipatests.test_integration.base import IntegrationTest
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user