From 32edf2ce94d2e04572c2f902e196a7ceeca71a70 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 30 Aug 2008 13:29:17 +0000 Subject: [PATCH] Fix missing import. --- sphinx/setup_command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index 2ef152d6d..86e84196f 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -81,6 +81,7 @@ class BuildDoc(Command): else: app.builder.build_update() except Exception, err: + from docutils.utils import SystemMessage if isinstance(err, SystemMessage): sys.stderr, darkred('reST markup error:') print >>sys.stderr, err.args[0].encode('ascii', 'backslashreplace')