Skip to content

Commit bc6f674

Browse files
committed
fix deprecation warning
1 parent 0b42ed0 commit bc6f674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/treeutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import os
1515
import numpy
1616
import sys
17-
from distutils.version import StrictVersion
17+
from packaging.version import Version
1818
import dendropy
1919
import time
2020
import math
@@ -23,7 +23,7 @@
2323
import warnings
2424
import traceback
2525
from io import open
26-
if StrictVersion(dendropy.__version__) < StrictVersion('4.0.0'): # not sure on the exact version I need, but 3.12.0 is missing lots of vital tree fcns
26+
if Version(dendropy.__version__) < Version('4.0.0'): # not sure on the exact version I need, but 3.12.0 is missing lots of vital tree fcns
2727
raise RuntimeError("dendropy version 4.0.0 or later is required (found version %s)." % dendropy.__version__)
2828
import yaml
2929
try:

0 commit comments

Comments
 (0)