#NEWLINE# def _mkdir( self , directory ) : #NEWLINE# #INDENT# '\n        If the given directory does not exist, then attempt to create it.\n        @rtype: C{None}\n        ' #NEWLINE# if ( not os . path . isdir ( directory ) ) : #NEWLINE# #INDENT# if os . path . exists ( directory ) : #NEWLINE# #INDENT# raise OSError ( ( '%r is not a directory' % directory ) ) #NEWLINE# #UNINDENT# os . mkdir ( directory )