summaryrefslogtreecommitdiff
path: root/doc/preprocess.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/preprocess.py')
-rwxr-xr-xdoc/preprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/preprocess.py b/doc/preprocess.py
index 870d3e123..83980bb2f 100755
--- a/doc/preprocess.py
+++ b/doc/preprocess.py
@@ -32,7 +32,7 @@ def doxy_config(root_path):
confs = []
dsrc_path = os.path.join(root_path, "doc", "source")
sub = dict(ROOT_DIR=root_path)
- with open(os.path.join(dsrc_path, "doxyfile"), "r") as fd:
+ with open(os.path.join(dsrc_path, "doxyfile")) as fd:
conf = DoxyTpl(fd.read())
confs.append(conf.substitute(CUR_DIR=dsrc_path, **sub))
@@ -40,7 +40,7 @@ def doxy_config(root_path):
if ".doxyfile" not in files:
continue
conf_path = os.path.join(dpath, ".doxyfile")
- with open(conf_path, "r") as fd:
+ with open(conf_path) as fd:
conf = DoxyTpl(fd.read())
confs.append(conf.substitute(CUR_DIR=dpath, **sub))
return confs