Skip to content

Commit 9840228

Browse files
committed
Replace distutils.version.LooseVersion with packaging.version.Version in ls_zprocess.
1 parent a88582d commit 9840228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labscript_utils/ls_zprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import sys
1414
import os
1515
from socket import gethostbyname
16-
from distutils.version import LooseVersion
16+
from packaging.version import Version
1717
import zmq
1818

1919
import zprocess
@@ -337,7 +337,7 @@ def connect_to_zlock_server():
337337
global _zlock_server_supports_readwrite
338338
if hasattr(client, 'get_protocol_version'):
339339
version = client.get_protocol_version()
340-
if LooseVersion(version) >= LooseVersion('1.1.0'):
340+
if Version(version) >= Version('1.1.0'):
341341
_zlock_server_supports_readwrite = True
342342

343343
# The user can call these functions to change the timeouts later if they

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy