diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2016-11-15 04:46:23 +0100 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2016-11-15 15:00:01 +0100 |
commit | 425cb9fbe1bce0bbe333378600bc5275b6abbb8c (patch) | |
tree | 42886455f01b8e814919a6f80e02acb2eb5498ba /man | |
parent | Merge pull request #11973 from ceph/wip-17898-ceph-disk-flake8 (diff) | |
download | ceph-425cb9fbe1bce0bbe333378600bc5275b6abbb8c.tar.xz ceph-425cb9fbe1bce0bbe333378600bc5275b6abbb8c.zip |
doc/man: avoid file builtin to solve build error
Sphinx running with Python 3.X fails:
# Sphinx version: 1.4.8
# Python version: 3.5.2 (CPython)
# Docutils version: 0.12 release
# Jinja2 version: 2.8
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/sphinx/cmdline.py", line 243, in main
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
File "/usr/lib/python3.5/site-packages/sphinx/application.py", line 137, in __init__
confoverrides or {}, self.tags)
File "/usr/lib/python3.5/site-packages/sphinx/config.py", line 287, in __init__
execfile_(filename, config)
File "/usr/lib/python3.5/site-packages/sphinx/util/pycompat.py", line 130, in execfile_
exec_(code, _globals)
File "conf.py", line 56, in <module>
File "conf.py", line 47, in _get_manpages
File "conf.py", line 12, in _get_description
NameError: name 'file' is not defined
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/conf.py b/man/conf.py index 2b24223b12d..67d371e6750 100644 --- a/man/conf.py +++ b/man/conf.py @@ -9,7 +9,7 @@ exclude_patterns = ['**/.#*', '**/*~'] def _get_description(fname, base): - with file(fname) as f: + with open(fname) as f: one = None while True: line = f.readline().rstrip('\n') |