Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/24'
Browse files Browse the repository at this point in the history
* origin/pr/24:
  Remove deprecated pkg_resources, replace with importlib
  • Loading branch information
marmarek committed Jun 27, 2024
2 parents 5cb02f1 + 8526b31 commit 721bf38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qubesidle/idleness_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import os
import asyncio
import subprocess
import pkg_resources
import importlib.metadata

TIMEOUT_SECONDS = 15 * 60

Expand All @@ -37,8 +37,8 @@ def load_watchers(self):
:return: None
"""
for entry_point in pkg_resources.iter_entry_points(
'qubes_idle_watcher'):
for entry_point in importlib.metadata.entry_points(
group='qubes_idle_watcher'):
self.add_watcher(entry_point.load()())

def add_watcher(self, watcher):
Expand Down

0 comments on commit 721bf38

Please sign in to comment.