Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
69069cfb
Commit
69069cfb
authored
Apr 18, 2014
by
Uwe L. Korn
Committed by
Brad King
Apr 18, 2014
Browse files
Utilities/Sphinx: Port documentation generation to python3 (
#14886
)
parent
e40fbbb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Utilities/Sphinx/cmake.py
View file @
69069cfb
...
...
@@ -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'
].
iter
items
():
for
refname
,
(
docname
,
type
)
in
self
.
data
[
'objects'
].
items
():
yield
(
refname
,
refname
,
type
,
docname
,
refname
,
1
)
def
setup
(
app
):
...
...
Utilities/Sphinx/conf.py.in
View file @
69069cfb
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment