Skip to content

Commit

Permalink
Don't import importlib_metadata since Py3.8 already has it as importl…
Browse files Browse the repository at this point in the history
…ib.metadata (#259)

It has already been dropped from setup.cfg.
  • Loading branch information
akosthekiss authored Dec 12, 2024
1 parent f5de911 commit e0c169e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions grammarinator/pkgdata.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Copyright (c) 2017-2021 Renata Hodovan, Akos Kiss.
# Copyright (c) 2017-2024 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.

try:
from importlib import metadata
except ImportError:
import importlib_metadata as metadata
from importlib import metadata


__version__ = metadata.version(__package__)

0 comments on commit e0c169e

Please sign in to comment.