Skip to content

Commit

Permalink
replace deprecated StrictVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Oct 14, 2024
1 parent 30d7634 commit ff0d18d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client-server/phoebe-server
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import subprocess
from time import sleep
from collections import OrderedDict
from datetime import datetime
from distutils.version import StrictVersion
from packaging.version import parse

from phoebe.parameters.unit_choices import unit_choices as _unit_choices

Expand Down Expand Up @@ -545,9 +545,9 @@ def info():

client_warning = None
if client_version is not None:
if StrictVersion(client_version) < StrictVersion('1.0.0'):
if parse(client_version) < parse('1.0.0'):
client_warning = 'client still in development'
elif StrictVersion(client_version) < StrictVersion('1.1.0'):
elif parse(client_version) < parse('1.1.0'):
client_warning = 'client does not support adding or editing servers'


Expand Down

0 comments on commit ff0d18d

Please sign in to comment.