#NEWLINE# def mkdir_p( dirname ) : #NEWLINE# #INDENT# assert ( dirname is not None ) #NEWLINE# if ( dirname == '' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# os . makedirs ( dirname ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# if ( dirname . errno != 17 ) : #NEWLINE# #INDENT# raise e