diff options
| author | Georg Brandl <georg@python.org> | 2014-01-22 18:13:49 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-01-22 18:13:49 +0100 |
| commit | 6f75873b602864ebfd4512c79785d567e253860f (patch) | |
| tree | b0b6fc2d8bc99bb63e544f843cc9763a9798ed4f /sphinx/setup_command.py | |
| parent | 1959d681ce28792585032a1090fe31157e8bbfa1 (diff) | |
| parent | db07af36867c5da22160637cd535d32d20d69d28 (diff) | |
| download | sphinx-6f75873b602864ebfd4512c79785d567e253860f.tar.gz | |
merge with stable
Diffstat (limited to 'sphinx/setup_command.py')
| -rw-r--r-- | sphinx/setup_command.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index f7ca7a9d..88cbc5a0 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -11,6 +11,7 @@ :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ +from __future__ import print_function import sys import os @@ -159,12 +160,12 @@ class BuildDoc(Command): try: app.build(force_all=self.all_files) - except Exception, err: + except Exception as err: from docutils.utils import SystemMessage if isinstance(err, SystemMessage): - print >>sys.stderr, darkred('reST markup error:') - print >>sys.stderr, err.args[0].encode('ascii', - 'backslashreplace') + print(darkred('reST markup error:'), file=sys.stderr) + print(err.args[0].encode('ascii', 'backslashreplace'), + file=sys.stderr) else: raise |
