summaryrefslogtreecommitdiffstats
path: root/Utilities/Sphinx/cmake.py
diff options
context:
space:
mode:
authorUwe L. Korn <uwelk@xhochy.com>2014-04-18 09:19:18 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-18 12:42:34 (GMT)
commit69069cfb1ab39d3466bedce65f02aa186f4d65fd (patch)
treeefab2af1ef893911473b8f98a4b8c2dc9c8b21b1 /Utilities/Sphinx/cmake.py
parente40fbbb0744e63401cba0958155c14fa838477cb (diff)
downloadCMake-69069cfb1ab39d3466bedce65f02aa186f4d65fd.zip
CMake-69069cfb1ab39d3466bedce65f02aa186f4d65fd.tar.gz
CMake-69069cfb1ab39d3466bedce65f02aa186f4d65fd.tar.bz2
Utilities/Sphinx: Port documentation generation to python3 (#14886)
Diffstat (limited to 'Utilities/Sphinx/cmake.py')
-rw-r--r--Utilities/Sphinx/cmake.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Utilities/Sphinx/cmake.py b/Utilities/Sphinx/cmake.py
index 336c74a..5eb4eac 100644
--- a/Utilities/Sphinx/cmake.py
+++ b/Utilities/Sphinx/cmake.py
@@ -62,12 +62,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()
@@ -305,7 +305,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):