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:
Stanislav Laznicka
2018-04-20 09:43:37 +02:00
parent 2de1aa27f9
commit b5bdd07bc5
121 changed files with 210 additions and 30 deletions
@@ -3,6 +3,8 @@
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import os
import pytest
import tempfile
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2
View File
@@ -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