Fix for "'VersionedAPIData' object has no attribute 'fully_supported'" (#219)

Commit 4b09951 added code looking for a non-existent `fully_supported`
attribute.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-09-18 06:45:08 +02:00 committed by GitHub
parent 81c4186497
commit f6ed27c588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,11 +59,11 @@ class APIData(object):
for other_version, comparator, data in self.versioned:
if other_version == '*' and comparator == '*':
self._current = data.specialize_for_version(api_version)
return self._current.fully_supported
return self._current.fully_understood
other_api_version = LooseVersion(other_version)
if _compare(api_version, other_api_version, comparator):
self._current = data.specialize_for_version(api_version)
return self._current.fully_supported
return self._current.fully_understood
self._current = None
return False