diff --git a/qubesadmin/utils.py b/qubesadmin/utils.py index 85109b7..9c76e48 100644 --- a/qubesadmin/utils.py +++ b/qubesadmin/utils.py @@ -25,8 +25,6 @@ '''Various utility functions.''' import os -import pkg_resources - import qubesadmin.exc @@ -89,6 +87,7 @@ def get_entry_point_one(group, name): '''Get a single entry point of given type, raise TypeError when there are multiple. ''' + import pkg_resources epoints = tuple(pkg_resources.iter_entry_points(group, name)) if not epoints: raise KeyError(name)