mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05: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:
@@ -3,6 +3,8 @@
|
||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import pytest
|
||||
import tempfile
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"""
|
||||
Test the `ipaserver/plugins/cert.py` module against a RA.
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import print_function, absolute_import
|
||||
|
||||
import base64
|
||||
import os
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"""
|
||||
Test the `ipalib.plugins.host` module.
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import print_function, absolute_import
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#
|
||||
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
|
||||
import copy
|
||||
import ldap
|
||||
import pytest
|
||||
|
||||
@@ -25,6 +25,8 @@ The certificate in cached in a global variable so it only has to be created
|
||||
once per test run.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
import shutil
|
||||
|
||||
Reference in New Issue
Block a user