Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -104,8 +104,7 @@ class XEP_0446:
|
|||
return file_elt
|
||||
|
||||
def parse_file_metadata_elt(
|
||||
self,
|
||||
file_metadata_elt: domish.Element
|
||||
self, file_metadata_elt: domish.Element
|
||||
) -> Dict[str, Any]:
|
||||
"""Parse <file/> element
|
||||
|
||||
|
|
@ -156,6 +155,7 @@ class XEP_0446:
|
|||
pass
|
||||
except exceptions.DataError:
|
||||
from libervia.backend.tools.xml_tools import p_fmt_elt
|
||||
|
||||
log.warning("invalid <hash/> element:\n{p_fmt_elt(file_metadata_elt)}")
|
||||
else:
|
||||
data["file_hash"] = (algo, hash_)
|
||||
|
|
|
|||
Loading…
Reference in a new issue