Files
python-congressclient/congressclient/__init__.py
Aaron Rosen 1e31e9de10 Fix version issue
This patch fixes a bug that causes pbr to throw an error.

Closes-bug: 1399538
Change-Id: I17ce9e942ab89501b7cc05105791d9f0aca53be8
2014-12-05 00:12:46 -08:00

24 lines
781 B
Python

# -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
__all__ = ['__version__']
import pbr.version
version_info = pbr.version.VersionInfo('python-congressclient')
try:
__version__ = version_info.version_string()
except AttributeError:
__version__ = None