From 09edc1247b387181568aa0ada894ea93e325eebe Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Fri, 7 Jul 2017 10:31:04 +0700 Subject: [PATCH] Use __future__ module absolute_import Purpose: To prevent future divergence of py2 and py3 behavior. Note: Change automatically generated by modernize tool - recommended package [1][2]. [1] https://docs.python.org/3/howto/pyporting.html [2] https://python-modernize.readthedocs.io/en/latest/ Change-Id: Ic1a158c322ab4e92275923554d96e0deca7894e0 Partial implements blueprint support-python-35 --- zun/__init__.py | 1 + zun/version.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zun/__init__.py b/zun/__init__.py index 8a3872785..67bc5a048 100644 --- a/zun/__init__.py +++ b/zun/__init__.py @@ -12,6 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. +from __future__ import absolute_import import pbr.version diff --git a/zun/version.py b/zun/version.py index 86fa50a21..77e0c74b3 100644 --- a/zun/version.py +++ b/zun/version.py @@ -11,7 +11,8 @@ # License for the specific language governing permissions and limitations # under the License. -from pbr import version as pbr_version +from __future__ import absolute_import +import pbr.version -version_info = pbr_version.VersionInfo('zun') +version_info = pbr.version.VersionInfo('zun') version_string = version_info.version_string