juju/client/_client.py
def best_facade_version(cls, connection):
        """
        Returns the best facade version for a given facade. This will help with
        trying to provide different functionality for different facade versions.

        @param connection: initialized Connection object.
        """
        facade_name = cls.__name__
        if not facade_name.endswith('Facade'):
           raise TypeError('Unexpected class name: {}'.format(facade_name))
        facade_name = facade_name[:-len('Facade')]
        return connection.facades.get(facade_name)

        Returns the best facade version for a given facade. This will help with
        trying to provide different functionality for different facade versions.

        @param connection: initialized Connection object.
        
Returns the best facade version for a given facade. This will help with
trying to provide different functionality for different facade versions.
Returns the best facade version for a given facade . This will help with trying to provide different functionality for different facade versions .
def best_facade_version(cls, connection):
        facade_name = cls.__name__
        if not facade_name.endswith('Facade'):
           raise TypeError('Unexpected class name: {}'.format(facade_name))
        facade_name = facade_name[:-len('Facade')]
        return connection.facades.get(facade_name)
def best_facade_version ( cls , connection ) : facade_name = cls . __name__ if not facade_name . endswith ( 'Facade' ) : raise TypeError ( 'Unexpected class name: {}' . format ( facade_name ) ) facade_name = facade_name [ : - len ( 'Facade' ) ] return connection . facades . get ( facade_name )
Returns the best facade version for a given facade.
Returns the best facade version for a given facade .
"""
        Returns the best facade version for a given facade. This will help with
        trying to provide different functionality for different facade versions.

        @param connection: initialized Connection object.
        """
cls
connection
initialized Connection object.
initialized Connection object .