diff options
author | Tom Rini <trini@konsulko.com> | 2023-11-21 09:10:15 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-21 09:10:15 -0500 |
commit | 9e53e45292ee2f1d9d2ccc59914b161bef9b10d7 (patch) | |
tree | 7da5c6ed1f5986e20073ec4183480110d36933c6 /doc/sphinx/load_config.py | |
parent | 24ca49b33af98d54d6cd2e845f071f6565345ffd (diff) | |
parent | 64658007f3c61e32bf241f3048a23b1728774d57 (diff) |
Merge tag 'efi-2024-01-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2024-01-rc4
Documentation
* Add HiSilicon board documentation to HTML docs
* Fix building with Sphinx 6.0
UEFI
* Increase default variable store size to 128K
* Check return value of efi_append_scrtm version
* Create shortened boot options in eficonfig command
Other
* Avoid incorrect error message in mkimage
Diffstat (limited to 'doc/sphinx/load_config.py')
-rw-r--r-- | doc/sphinx/load_config.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/sphinx/load_config.py b/doc/sphinx/load_config.py index eeb394b39e2..8b416bfd75a 100644 --- a/doc/sphinx/load_config.py +++ b/doc/sphinx/load_config.py @@ -3,7 +3,7 @@ import os import sys -from sphinx.util.pycompat import execfile_ +from sphinx.util.osutil import fs_encoding # ------------------------------------------------------------------------------ def loadConfig(namespace): @@ -48,7 +48,9 @@ def loadConfig(namespace): sys.stdout.write("load additional sphinx-config: %s\n" % config_file) config = namespace.copy() config['__file__'] = config_file - execfile_(config_file, config) + with open(config_file, 'rb') as f: + code = compile(f.read(), fs_encoding, 'exec') + exec(code, config) del config['__file__'] namespace.update(config) else: |