diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-29 13:50:20 +0000 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-29 13:50:20 +0000 |
| commit | fae9ca36955cdaebb81936bb54c3e9e44b5e6928 (patch) | |
| tree | 7b1b80b07abeb7abfe9b459c3a58477f084cf6da /pkg_resources | |
| parent | f5098c20ae773bff28ac809a6dea9459f24a27dc (diff) | |
| download | python-setuptools-git-fae9ca36955cdaebb81936bb54c3e9e44b5e6928.tar.gz | |
Update warning to clarify when and how the instance should be use directly or what to do otherwise.
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index c0c095b2..2ce663d2 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -182,8 +182,10 @@ class _SetuptoolsVersionMixin(object): "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. That class should be used directly instead of attempting to " - "iterate over the result.", + "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.", RuntimeWarning, stacklevel=1, ) |
