parameters: (cls, dir, mode=None)
docstring: wrapper to makedirs
docstring_summary: wrapper to makedirs
docstring_tokens: wrapper to makedirs
function: def makedirs(cls, dir, mode=None):
          '''wrapper to makedirs'''
          if not os.path.exists(dir):
              # this is done to avoid multiple calls to this function causing
              # a race to make the same directory
              try:
                  if mode:
                      os.makedirs(dir, mode)
                  else:
                      os.makedirs(dir)
              except OSError as e:
                  if e.errno != errno.EEXIST:
                      raise
function_tokens: def makedirs ( cls , dir , mode = None ) : if not os . path . exists ( dir ) : # this is done to avoid multiple calls to this function causing # a race to make the same directory try : if mode : os . makedirs ( dir , mode ) else : os . makedirs ( dir ) except OSError as e : if e . errno != errno . EEXIST : raise