#NEWLINE# def __init__( self , pkg = '' , rev = '' , address = None , payload = None , **kwargs ) : #NEWLINE# #INDENT# "\n    :param str pkg: The package import path within the remote library; by default the root package\n                    path (equivalent to passing `pkg='.'` or `pkg=''`).\n    :param str rev: Identifies which version of the remote library to download. This could be a\n                    commit SHA (git), node id (hg), etc.  If left unspecified the version will\n                    default to the latest available.  It's highly recommended to not accept the\n                    default and instead pin the rev explicitly for repeatable builds.\n    " #NEWLINE# try : #NEWLINE# #INDENT# package_path = self . normalize_package_path ( pkg ) #NEWLINE# #UNINDENT# except ValueError as e : #NEWLINE# #INDENT# raise TargetDefinitionException ( address . spec , str ( e ) ) #NEWLINE# #UNINDENT# payload = ( kwargs or Payload ( ) ) #NEWLINE# payload . add_fields ( { #NEWLINE# #INDENT# 'rev' : PrimitiveField ( ( rev or '' ) ) , #NEWLINE# 'pkg' : PrimitiveField ( package_path ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# super ( GoRemoteLibrary , self ) . __init__ ( address = address , payload = payload , ** kwargs )