Skip to content

Commit

Permalink
We can use importlib.metadata now
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro committed Oct 16, 2023
1 parent 6217983 commit d562701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmldiff/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""All major API points and command-line tools"""
import pkg_resources
from importlib import metadata

from argparse import ArgumentParser, ArgumentTypeError
from lxml import etree
from xmldiff import diff, formatting, patch

__version__ = pkg_resources.require("xmldiff")[0].version
__version__ = metadata.version("xmldiff")

FORMATTERS = {
"diff": formatting.DiffFormatter,
Expand Down

0 comments on commit d562701

Please sign in to comment.