Skip to content

Commit

Permalink
fix: fix Python 3.8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tngraf committed Dec 24, 2023
1 parent 3908407 commit 7d74c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cli_support/CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# SPDX-License-Identifier: MIT
# -------------------------------------------------------------------------------

import sys
import xml.etree.ElementTree as ET
# from typing import List
from typing import Any

from .cli_assessment_summary import CliAssessmentSummary
Expand Down Expand Up @@ -201,5 +201,6 @@ def write_to_file(self, filename: str) -> None:
comment.append(cdata)

tree = ET.ElementTree(root)
ET.indent(tree)
if sys.version_info[:3] > (3, 8):
ET.indent(tree)
tree.write(filename, encoding="UTF-8")
2 changes: 1 addition & 1 deletion cli_support/license_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# SPDX-License-Identifier: MIT
# -------------------------------------------------------------------------------

from typing import Optional, List
from typing import List, Optional

from .CLI import CliFile
from .cli_license import CliLicense
Expand Down

0 comments on commit 7d74c4d

Please sign in to comment.