#NEWLINE# def _patch( self , resource , data , * args , **kwargs ) : #NEWLINE# #INDENT# url = self . _url ( resource ) #NEWLINE# r = requests . patch ( url , * self , data = json . dumps ( data ) , headers = { #NEWLINE# #INDENT# 'content-type' : 'application/merge-patch+json' , #NEWLINE# #UNINDENT# } , ** kwargs ) #NEWLINE# self . _wrap_exception ( r ) #NEWLINE# return r . json ( )