Skip to content

Commit

Permalink
fix(py3): fix import of importlib metadata package for Python 3.7
Browse files Browse the repository at this point in the history
Signed-off-by: Frederico Araujo <[email protected]>
  • Loading branch information
araujof committed Nov 20, 2022
1 parent 9f1e62b commit 5700fb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py3/classes/sysflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from importlib.metadata import version, PackageNotFoundError
try:
from importlib.metadata import version, PackageNotFoundError
except ModuleNotFoundError:
from importlib_metadata import version, PackageNotFoundError

__version__ = ''
try:
Expand Down

0 comments on commit 5700fb8

Please sign in to comment.