doc/gendoc.py
changeset 52656 3e84e001b6c1
parent 52636 0e11e532c958
--- a/doc/gendoc.py	Mon Jan 06 01:44:46 2025 -0500
+++ b/doc/gendoc.py	Tue Jan 07 17:28:46 2025 -0500
@@ -361,7 +361,7 @@
 
 def _rendertpl(tplname, data):
     tplpath = os.path.join(os.path.dirname(__file__), 'templates', tplname)
-    with open(tplpath, 'r') as f:
+    with open(tplpath) as f:
         tpl = f.read()
 
     if isinstance(tpl, bytes):