juju/client/facade.py
def write_definitions(captures, options):
    """
    Write auxillary (non versioned) classes to
    _definitions.py The auxillary classes currently get
    written redudantly into each capture object, so we can look in
    one of them -- we just use the last one from the loop above.

    """
    with open("{}/_definitions.py".format(options.output_dir), "w") as f:
        f.write(HEADER)
        f.write("from juju.client.facade import Type, ReturnMapping\n\n")
        for key in sorted(
                [k for k in captures.keys() if "Facade" not in k]):
            print(captures[key], file=f)

    Write auxillary (non versioned) classes to
    _definitions.py The auxillary classes currently get
    written redudantly into each capture object, so we can look in
    one of them -- we just use the last one from the loop above.

    
Write auxillary (non versioned) classes to
_definitions.py The auxillary classes currently get
written redudantly into each capture object, so we can look in
one of them -- we just use the last one from the loop above.
Write auxillary ( non versioned ) classes to _definitions . py The auxillary classes currently get written redudantly into each capture object so we can look in one of them -- we just use the last one from the loop above .
def write_definitions(captures, options):
    with open("{}/_definitions.py".format(options.output_dir), "w") as f:
        f.write(HEADER)
        f.write("from juju.client.facade import Type, ReturnMapping\n\n")
        for key in sorted(
                [k for k in captures.keys() if "Facade" not in k]):
            print(captures[key], file=f)
def write_definitions ( captures , options ) : with open ( "{}/_definitions.py" . format ( options . output_dir ) , "w" ) as f : f . write ( HEADER ) f . write ( "from juju.client.facade import Type, ReturnMapping\n\n" ) for key in sorted ( [ k for k in captures . keys ( ) if "Facade" not in k ] ) : print ( captures [ key ] , file = f )
Write auxillary (non versioned) classes to
_definitions.py The auxillary classes currently get
written redudantly into each capture object, so we can look in
one of them -- we just use the last one from the loop above.
Write auxillary ( non versioned ) classes to _definitions . py The auxillary classes currently get written redudantly into each capture object so we can look in one of them -- we just use the last one from the loop above .
"""
    Write auxillary (non versioned) classes to
    _definitions.py The auxillary classes currently get
    written redudantly into each capture object, so we can look in
    one of them -- we just use the last one from the loop above.

    """
captures
options