Return the lower supported protocol version. Beta versions are omitted.
(cls, previous_version)
| 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): |
no outgoing calls