Skip to content

Commit

Permalink
Remove xmp warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed May 26, 2022
1 parent 1513e3e commit 81e99e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyPDF2/xmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get(self: Any) -> Optional[Any]:
if cached:
return cached
retval = []
for element in self.getElement("", namespace, name):
for element in self.get_element("", namespace, name):
bags = element.getElementsByTagNameNS(RDF_NAMESPACE, "Bag")
if len(bags):
for bag in bags:
Expand Down Expand Up @@ -233,6 +233,8 @@ def getElement(self, aboutUri: str, namespace: str, name: str) -> Any:
"""
warnings.warn(
DEPR_MSG.format("getElement", "get_element"),
PendingDeprecationWarning,
stacklevel=2,
)
return self.get_element(aboutUri, namespace, name)

Expand Down

0 comments on commit 81e99e6

Please sign in to comment.