John L. Villalovos 47b22208ea Prevent deprecation error messages from pkg_resources
Currently pkg_resources is creating this warning message:

    RuntimeWarning: You have iterated over the result of
    pkg_resources.parse_version. This is a legacy behavior which is
    inconsistent with the new version class introduced in setuptools
    8.0.  In most cases, conversion to a tuple is unnecessary. For
    comparison of versions, sort the Version instances directly. If
    you have another use case requiring the tuple, please file a bug
    with the setuptools project describing that need.

Get the major_version directly from the version string passed in
instead so that the warning message is not raised.

Closes-Bug: #1706394
Change-Id: I663ed579c27e48a34fdd9565037110a43e5b5587
2017-07-25 09:08:33 -07:00
2016-12-20 14:20:50 +11:00
2014-06-18 23:12:10 -04:00
2015-11-16 23:17:37 +08:00
2017-03-03 00:03:24 +00:00
2017-01-09 10:14:48 -08:00

Team and repository tags

image

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8 MiB
Languages
Python 100%