Skip to content

Commit

Permalink
Use importlib.metadata instead of importlib_metadata
Browse files Browse the repository at this point in the history
The importlib.metadata library is part of the Python standard library
since Python 3.8.

Change-Id: Iecf1d469caaa777c5b253eb0e44dc00692197ef7
(cherry picked from commit 8b465ea)
  • Loading branch information
priteau committed Oct 4, 2023
1 parent a44f063 commit 16a993b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kayobe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import base64
import glob
import importlib_metadata
from importlib.metadata import Distribution
import json
import logging
import os
Expand Down Expand Up @@ -68,7 +68,7 @@ def _get_base_path():
if override:
return os.path.join(override)

kayobe_dist = list(importlib_metadata.Distribution.discover(name="kayobe"))
kayobe_dist = list(Distribution.discover(name="kayobe"))
if kayobe_dist:
direct_url = _get_direct_url(kayobe_dist[0])
if direct_url:
Expand Down

0 comments on commit 16a993b

Please sign in to comment.