#NEWLINE# def set_clean( using = None ) : #NEWLINE# #INDENT# '\n    Resets a dirty flag for the current thread and code streak. This can be used\n    to decide in a managed block of code to decide whether a commit or rollback\n    should happen.\n    ' #NEWLINE# if ( using is None ) : #NEWLINE# #INDENT# using = DEFAULT_DB_ALIAS #NEWLINE# #UNINDENT# connection = connections [ using ] #NEWLINE# connection . set_clean ( )