MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / get_lower_supported

Method get_lower_supported

cassandra/__init__.py:203–213  ·  view source on GitHub ↗

Return the lower supported protocol version. Beta versions are omitted.

(cls, previous_version)

Source from the content-addressed store, hash-verified

201
202 @classmethod
203 def get_lower_supported(cls, previous_version):
204 """
205 Return the lower supported protocol version. Beta versions are omitted.
206 """
207 try:
208 version = next(v for v in sorted(ProtocolVersion.SUPPORTED_VERSIONS, reverse=True) if
209 v not in ProtocolVersion.BETA_VERSIONS and v < previous_version)
210 except StopIteration:
211 version = 0
212
213 return version
214
215 @classmethod
216 def uses_int_query_flags(cls, version):

Callers 2

protocol_downgradeMethod · 0.80

Calls

no outgoing calls

Tested by 1