#NEWLINE# def put( self , url = None , version = '3.0' , addon = '@upload-version' , filename = None ) : #NEWLINE# #INDENT# if ( filename is None ) : #NEWLINE# #INDENT# filename = self . xpi_filepath ( addon , version ) #NEWLINE# #UNINDENT# if ( url is None ) : #NEWLINE# #INDENT# url = self . url ( addon , version ) #NEWLINE# #UNINDENT# with open ( filename ) as upload : #NEWLINE# #INDENT# return self . client . put ( url , { #NEWLINE# #INDENT# 'upload' : upload , #NEWLINE# #UNINDENT# } , HTTP_AUTHORIZATION = self . authorization ( ) )