#NEWLINE# def register( key , value ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# repo = services . checkout ( ) #NEWLINE# while repo . notcheckedin : #NEWLINE# #INDENT# with repo . changeset ( key ) as c : #NEWLINE# #INDENT# c [ key ] . set ( value ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except _MAXFAIL as mf : #NEWLINE# #INDENT# print ( 'TRANSACTION COMPLETELY FAILED' )