Skip to content

Commit

Permalink
handle importlib.util not being in namespace (py3.8 specific bug?)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Feb 8, 2022
1 parent 30d8aa2 commit 28dc9dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quimb/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Miscellenous
"""
import importlib
import itertools
import collections
from importlib.util import find_spec


try:
Expand Down Expand Up @@ -60,7 +60,7 @@ def find_library(x):
bool
If library is available.
"""
return importlib.util.find_spec(x) is not None
return find_spec(x) is not None


def raise_cant_find_library_function(x, extra_msg=None):
Expand Down

0 comments on commit 28dc9dd

Please sign in to comment.