summaryrefslogtreecommitdiffstats
path: root/doc/SConscript
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-02-17 20:45:45 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-02-17 20:45:45 (GMT)
commit83690c61e673b91b3e35cffdbc0a010296509e05 (patch)
tree1ef9f240f71fdd652a13d218964faa89c2ef2f14 /doc/SConscript
parent0a6189cb492728a839d753d1a96e96d8a6cabcf9 (diff)
downloadSCons-83690c61e673b91b3e35cffdbc0a010296509e05.zip
SCons-83690c61e673b91b3e35cffdbc0a010296509e05.tar.gz
SCons-83690c61e673b91b3e35cffdbc0a010296509e05.tar.bz2
Fix some py3.8 warnings in doc SConscript
Diffstat (limited to 'doc/SConscript')
-rw-r--r--doc/SConscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/SConscript b/doc/SConscript
index ff29a70..e43a27b 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -90,7 +90,8 @@ def writeVersionXml(verfile, date, ver, rev):
os.makedirs(dir)
except OSError:
pass # okay if the directory already exists
- open(verfile, "w").write("""<!--
+ with open(verfile, "w") as vf:
+ vf.write("""<!--
THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
-->
<!ENTITY builddate "%s">
@@ -105,7 +106,7 @@ man_page_list = ['scons.1','scons-time.1','sconsign.1']
# Template for the MAN page texts when we can't properly
# create them because the skip_doc flag is set (required
# modules/tools aren't installed in the current system)
-man_replace_tpl = """.TH "%(uctitle)s" "1" "%(today)s" "SCons %(version)s" "SCons %(version)s"
+man_replace_tpl = r""".TH "%(uctitle)s" "1" "%(today)s" "SCons %(version)s" "SCons %(version)s"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.nh