#NEWLINE# @ classmethod #NEWLINE# def reset( cls , fname ) : #NEWLINE# #INDENT# if ( cls . states is None ) : #NEWLINE# #INDENT# cls . setup ( ) #NEWLINE# #UNINDENT# if ( fname not in cls . states ) : #NEWLINE# #INDENT# raise ValueError ( "Upload doesn't exist!" ) #NEWLINE# #UNINDENT# cls . cache . _del_upload ( fname ) #NEWLINE# return cls . states . pop ( fname )