Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix and simplify last change
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Sep 2, 2017
1 parent 86f742b commit 1970398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage_setup/autogen/interpreters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

from __future__ import print_function, absolute_import

import os, errno
import os

from os.path import getmtime

Expand Down Expand Up @@ -195,7 +195,7 @@ def rebuild(dirname, force=False):
try:
os.makedirs(dirname)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
if os.path.isdir(dirname):
pass
else:
raise
Expand Down

0 comments on commit 1970398

Please sign in to comment.