Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent a6a8d01 commit a79d6c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntaxes/plist2xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def generate_xml(parent: ET.Element, data: pp.ParseResults, level=0, indent=4):
lines = string.split("\n")
reindented_lines = [lines[0]]
for line in lines[1:]:
m: Match = re.match(f"^[ ]{{{(level-1)*indent}}}", line)
m: Match = re.match(f"^[ ]{{{(level - 1) * indent}}}", line)
if m:
# remove plist indent
line = line[len(m.group(0)) :]
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/xml2plist.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def convert_to_plist(element: ET.Element, level=0, indent=4, context: str = ""):
), f"Got {key_element.tag}({key_element.text}) without value"
item_str = (
f"{inner_indentation}{to_safe_string(key_element.text)} ="
f" {convert_to_plist(value_element, level+1, indent, 'mapping')};"
f" {convert_to_plist(value_element, level + 1, indent, 'mapping')};"
)
dict_items.append(item_str)
except StopIteration:
Expand Down

0 comments on commit a79d6c5

Please sign in to comment.