]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
cPickle does not exist anymore in python 3
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 29 Sep 2021 15:15:36 +0000 (17:15 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Fri, 21 Jan 2022 09:24:13 +0000 (10:24 +0100)
bin/PortManager.py

index 61289e6c18c094a4b4bb741e80a5364902fb7870..a07bd40d49f1b72be4eb6b6a911875d47ab4828b 100644 (file)
@@ -27,10 +27,7 @@ import psutil
 
 from socket import AF_INET, SOCK_STREAM
 
-try:
-  import cPickle as pickle #@UnusedImport
-except ImportError:
-  import pickle #@Reimport
+import pickle
 
 __PORT_MIN_NUMBER = 2810
 __PORT_MAX_NUMBER = 2910