Skip to content

Commit

Permalink
Python 3.12 compat: replace pkg_resource module with duck-typing
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Aug 14, 2023
1 parent e31ed37 commit 572c71e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spherogram_src/links/orthogonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
from .links import Strand
from ..graphs import CyclicList, Digraph
from collections import namedtuple, Counter
from pkg_resources import parse_version

try:
import plink
assert parse_version(plink.__version__) > parse_version('2.0.1')
assert hasattr(plink, 'LinkDisplay')
except (ImportError, AssertionError):
plink = None
# ---------------------------------------------------
Expand Down

0 comments on commit 572c71e

Please sign in to comment.