Updated distribution files

This commit is contained in:
squidfunk 2023-12-19 10:00:42 +01:00
parent 6a2b62b4f9
commit 175df61397
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 3 additions and 3 deletions

View File

@ -247,7 +247,7 @@ class PrivacyPlugin(BasePlugin[PrivacyConfig]):
# Parse and extract all external assets from a media file using a preset
# regular expression, and return all URLs found.
def _parse_media(self, initiator: File) -> "list[URL]":
def _parse_media(self, initiator: File) -> list[URL]:
_, extension = posixpath.splitext(initiator.dest_uri)
if extension not in self.assets_expr_map:
return []

View File

@ -312,9 +312,9 @@ class Element:
"""
# Initialize HTML element
def __init__(self, tag, attrs = {}):
def __init__(self, tag, attrs = None):
self.tag = tag
self.attrs = attrs
self.attrs = attrs or {}
# String representation
def __repr__(self):