diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2021-02-01 04:04:34 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-02-01 12:21:10 +0100 |
commit | 934d0d023e33aa38c56e1e12118be8ddbd839284 (patch) | |
tree | 07bce64e00ce22f56361bd054dca8c4a4f04816b /tools | |
parent | hwdb: Add evdev for Huawei EUL-XW9 (diff) | |
download | systemd-934d0d023e33aa38c56e1e12118be8ddbd839284.tar.xz systemd-934d0d023e33aa38c56e1e12118be8ddbd839284.zip |
tools: make update-dbus-docs compatible with Python 3.6
668b3a42fe9e250912bd3efa4460ed691452d9bf allowed update-dbus-docs.py to start
running on Cent OS 8 (instead of skipping). But subprocess.check_output()'s
text argument didn't exist until Python 3.7 and C8 is still running
Python 3.6. Use universal_newlines instead for backwards compatibility.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/update-dbus-docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update-dbus-docs.py b/tools/update-dbus-docs.py index 269b2196a2..b453a0867e 100755 --- a/tools/update-dbus-docs.py +++ b/tools/update-dbus-docs.py @@ -197,7 +197,7 @@ def subst_output(document, programlisting, stats): print(f'COMMAND: {shlex_join(argv)}') try: - out = subprocess.check_output(argv, text=True) + out = subprocess.check_output(argv, universal_newlines=True) except FileNotFoundError: print(f'{executable} not found, ignoring', file=sys.stderr) return |