1. Benoît Allard
  2. sphinx


Georg Brandl  committed 126fdd8

Fix bug replacing 2 by its errno constant.

  • Participants
  • Parent commits 902d601
  • Branches default

Comments (0)

Files changed (1)

File sphinx/builders/__init__.py

View file
 from docutils import nodes
 from sphinx import package_dir, locale
-from sphinx.util import SEP, EEXIST, relative_uri
+from sphinx.util import SEP, ENOENT, relative_uri
 from sphinx.environment import BuildEnvironment
 from sphinx.util.console import bold, purple, darkgreen, term_width_line
                     path.join(self.doctreedir, ENV_PICKLE_FILENAME))
             except Exception, err:
-                if type(err) is IOError and err.errno == EEXIST:
+                if type(err) is IOError and err.errno == ENOENT:
                     self.info('not found')
                     self.info('failed: %s' % err)