Changeset 98950 in vbox
- Timestamp:
- Mar 14, 2023 9:00:33 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156299
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/htmlhelp-qthelp.py
r98865 r98950 10 10 import os.path 11 11 import re 12 import codecs13 12 import logging 14 13 … … 53 52 for html_file_name in html_files: 54 53 full_html_path = os.path.join(folder, html_file_name) 55 file_content = codecs.open(full_html_path, encoding='utf-8').read()54 file_content = open(full_html_path, encoding='utf-8').read() 56 55 57 56 class html_parser(HTMLParser): … … 100 99 return html_file_lines 101 100 full_path = os.path.join(folder, list_file) 102 file = codecs.open(full_path, encoding='utf-8')101 file = open(full_path, encoding='utf-8') 103 102 104 103 lines = file.readlines() … … 199 198 return toc_string_list 200 199 full_path = os.path.join(folder, toc_file) 201 file = codecs.open(full_path, encoding='utf-8')200 file = open(full_path, encoding='utf-8') 202 201 content = file.read() 203 202 file.close() … … 258 257 elif opt in ("-o"): 259 258 output_filename = arg 260 261 259 # check supplied helphtml folder argument 262 260 if not helphtmlfolder:
Note:
See TracChangeset
for help on using the changeset viewer.