def get_server_versions():
 global cass_version, cql_version
 if (cass_version is not None):
  return (cass_version, cql_version)
 c = Cluster()
 s = c.connect()
 row = s.execute('SELECT cql_version, release_version FROM system.local')[0]
 cass_version = _tuple_version(row.release_version)
 cql_version = _tuple_version(row.cql_version)
 c.shutdown()
 return (cass_version, cql_version)

def get_server_versions ( ) : global cass_version , cql_version if ( cass_version is not None ) : return ( cass_version , cql_version ) c = Cluster ( ) s = c . connect ( ) row = s . execute ( 'SELECT cql_version, release_version FROM system.local' ) [ 0 ] cass_version = _tuple_version ( row . release_version ) cql_version = _tuple_version ( row . cql_version ) c . shutdown ( ) return ( cass_version , cql_version )
probe system .