Skip to content

Commit

Permalink
syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrpfn committed Sep 30, 2021
1 parent 8e115c5 commit f91f43d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ascmhl/chain_xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _hashlist_xml_element_from_hashlist(hash_list: MHLHashList):
def _hashlist_xml_element_from_chaingeneration(generation: MHLChainGeneration):
"""builds and returns one <hashlist> element for a given ChainGeneration object"""

if generation.hash_format == 'c4':
if generation.hash_format == "c4":
hash_list_element = E.hashlist(
E.path(generation.ascmhl_filename),
E.c4(generation.hash_string),
Expand All @@ -140,4 +140,3 @@ def _hashlist_xml_element_from_chaingeneration(generation: MHLChainGeneration):
else:
logger.error("ERR: fixme: non-c4 hash in chain file, not implemented")
return E.hashlist()

2 changes: 1 addition & 1 deletion ascmhl/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def xsd_schema_check(file_path, directory_file):

xsd_path = "xsd/ASCMHL.xsd"

if (directory_file):
if directory_file:
xsd_path = "xsd/ASCMHLDirectory__combined.xsd"

xsd = etree.XMLSchema(etree.parse(xsd_path))
Expand Down

0 comments on commit f91f43d

Please sign in to comment.