We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
distutils.version.LooseVersion
packaging.version.Version
ls_zprocess
1 parent a88582d commit 9840228Copy full SHA for 9840228
labscript_utils/ls_zprocess.py
@@ -13,7 +13,7 @@
13
import sys
14
import os
15
from socket import gethostbyname
16
-from distutils.version import LooseVersion
+from packaging.version import Version
17
import zmq
18
19
import zprocess
@@ -337,7 +337,7 @@ def connect_to_zlock_server():
337
global _zlock_server_supports_readwrite
338
if hasattr(client, 'get_protocol_version'):
339
version = client.get_protocol_version()
340
- if LooseVersion(version) >= LooseVersion('1.1.0'):
+ if Version(version) >= Version('1.1.0'):
341
_zlock_server_supports_readwrite = True
342
343
# The user can call these functions to change the timeouts later if they
0 commit comments