summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-18 13:08:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-04-18 13:08:28 (GMT)
commite0790c90c04802c687042b04216fb0d11de603a7 (patch)
tree045dbff1f0d05cf951523dc33a2dfdfb88892d5a /Utilities
parentc9d13f841e5ce58ac158e4b5e35b619c0bc7aaab (diff)
parent69069cfb1ab39d3466bedce65f02aa186f4d65fd (diff)
downloadCMake-e0790c90c04802c687042b04216fb0d11de603a7.zip
CMake-e0790c90c04802c687042b04216fb0d11de603a7.tar.gz
CMake-e0790c90c04802c687042b04216fb0d11de603a7.tar.bz2
Merge topic 'sphinx-python3'
69069cfb Utilities/Sphinx: Port documentation generation to python3 (#14886)
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Sphinx/cmake.py6
-rw-r--r--Utilities/Sphinx/conf.py.in2
2 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/Sphinx/cmake.py b/Utilities/Sphinx/cmake.py
index 2d83376..108c6ef 100644
--- a/Utilities/Sphinx/cmake.py
+++ b/Utilities/Sphinx/cmake.py
@@ -80,12 +80,12 @@ class CMakeModule(Directive):
settings.record_dependencies.add(path)
f = io.FileInput(source_path=path, encoding=encoding,
error_handler=e_handler)
- except UnicodeEncodeError, error:
+ except UnicodeEncodeError as error:
raise self.severe('Problems with "%s" directive path:\n'
'Cannot encode input file path "%s" '
'(wrong locale?).' %
(self.name, SafeString(path)))
- except IOError, error:
+ except IOError as error:
raise self.severe('Problems with "%s" directive path:\n%s.' %
(self.name, ErrorString(error)))
raw_lines = f.read().splitlines()
@@ -323,7 +323,7 @@ class CMakeDomain(Domain):
contnode, target)
def get_objects(self):
- for refname, (docname, type) in self.data['objects'].iteritems():
+ for refname, (docname, type) in self.data['objects'].items():
yield (refname, refname, type, docname, refname, 1)
def setup(app):
diff --git a/Utilities/Sphinx/conf.py.in b/Utilities/Sphinx/conf.py.in
index f7e4b8b..d81bbcf 100644
--- a/Utilities/Sphinx/conf.py.in
+++ b/Utilities/Sphinx/conf.py.in
@@ -50,7 +50,7 @@ for fpath in cmake_manuals:
name, desc, [], int(sec)))
else:
sys.stderr.write("ERROR: No cmake-manual-description in '%s'\n" % fpath)
- except Exception, e:
+ except Exception as e:
sys.stderr.write("ERROR: %s\n" % str(e))
man_show_urls = False