Skip to content

Commit

Permalink
update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Nov 9, 2024
1 parent 0147fe3 commit d968357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions goatools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from importlib.metadata import version, PackageNotFoundError

__author__ = ("Haibao Tang", "DV Klopfenstein")
__copyright__ = "Copyright (C) 2009-{}, Haibao Tang, DV Klopfenstein".format(
datetime.now().year
__copyright__ = (
f"Copyright (C) 2009-{datetime.now().year}, Haibao Tang, DV Klopfenstein"
)
__email__ = "[email protected]"
__license__ = "BSD"
Expand All @@ -14,10 +14,10 @@
except PackageNotFoundError: # pragma: no cover
try:
from .version import version as VERSION # noqa
except ImportError: # pragma: no cover
except ImportError as exc: # pragma: no cover
raise ImportError(
"Failed to find (autogenerated) version.py. "
"This might be because you are installing from GitHub's tarballs, "
"use the PyPI ones."
)
) from exc
__version__ = VERSION

0 comments on commit d968357

Please sign in to comment.