diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 51a7face50..64454f0e33 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -900,6 +900,8 @@ class build_apps(setuptools.Command): ET.SubElement(intent_filter, 'category').set('android:name', 'android.intent.category.LEANBACK_LAUNCHER') tree = ET.ElementTree(manifest) + if sys.version_info >= (3, 9): + ET.indent(tree) with open(path, 'wb') as fh: tree.write(fh, encoding='utf-8', xml_declaration=True)