homekeeper/testing.py
def _makedirs(makedirs):
    """Returns a version of makedirs that does not raise an exception if the
    directory already exists."""
    def safe_makedirs(pathname):
        try:
            makedirs(pathname)
        except OSError as exc:
            if exc.errno == errno.EEXIST and os.path.isdir(pathname):
                pass
            else:
                raise
    return safe_makedirs
Returns a version of makedirs that does not raise an exception if the
    directory already exists.
Returns a version of makedirs that does not raise an exception if the
directory already exists.
Returns a version of makedirs that does not raise an exception if the directory already exists .
def _makedirs(makedirs):
    def safe_makedirs(pathname):
        try:
            makedirs(pathname)
        except OSError as exc:
            if exc.errno == errno.EEXIST and os.path.isdir(pathname):
                pass
            else:
                raise
    return safe_makedirs
def _makedirs ( makedirs ) : def safe_makedirs ( pathname ) : try : makedirs ( pathname ) except OSError as exc : if exc . errno == errno . EEXIST and os . path . isdir ( pathname ) : pass else : raise return safe_makedirs
Returns a version of makedirs that does not raise an exception if the
directory already exists.
Returns a version of makedirs that does not raise an exception if the directory already exists .
"""Returns a version of makedirs that does not raise an exception if the
    directory already exists."""
makedirs