merge with trunk

This commit is contained in:
Georg Brandl
2009-12-29 12:34:11 +01:00
3 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ from os import path
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
@@ -210,7 +210,7 @@ class Builder(object):
path.join(self.doctreedir, ENV_PICKLE_FILENAME))
self.info('done')
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')
else:
self.info('failed: %s' % err)

View File

@@ -503,9 +503,10 @@ class SmartyPantsHTMLTranslator(HTMLTranslator):
def visit_literal_block(self, node):
self.no_smarty += 1
def depart_literal_block(self, node):
self.no_smarty -= 1
try:
HTMLTranslator.visit_literal_block(self, node)
finally:
self.no_smarty -= 1
def visit_literal_emphasis(self, node):
self.no_smarty += 1

View File

@@ -64,4 +64,3 @@ While not recommended, it should work (and leave quotes alone).
.. include:: quotes.inc
:literal:
:tab-width: 4