Skip to content

Commit 8eee772

Browse files
committed
sweep: #6958 fix: py2/3 remnants : removed selectors2
1 parent a285904 commit 8eee772

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

src/DIRAC/Core/DISET/ServiceReactor.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@
1616
"""
1717
import time
1818
import datetime
19-
import socket
19+
import selectors
2020
import signal
2121
import os
2222
import sys
2323
import multiprocessing
2424

25-
try:
26-
import selectors
27-
except ImportError:
28-
import selectors2 as selectors
29-
3025
from DIRAC import gLogger, S_OK, S_ERROR
3126
from DIRAC.Core.DISET.private.Service import Service
3227
from DIRAC.Core.DISET.private.GatewayService import GatewayService

src/DIRAC/Core/DISET/private/MessageBroker.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@
22
"""
33
import threading
44
import time
5-
import select
6-
import socket
5+
import selectors
76

87
from concurrent.futures import ThreadPoolExecutor
98

10-
try:
11-
import selectors
12-
except ImportError:
13-
import selectors2 as selectors
14-
159
from DIRAC import gLogger, S_OK, S_ERROR
1610
from DIRAC.Core.DISET.private.TransportPool import getGlobalTransportPool
1711
from DIRAC.Core.Utilities.ReturnValues import isReturnStructure

src/DIRAC/Core/DISET/private/Transports/PlainTransport.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1+
import selectors
12
import socket
23
import time
34
import os
45

5-
try:
6-
import selectors
7-
except ImportError:
8-
import selectors2 as selectors
9-
106
from DIRAC.Core.DISET.private.Transports.BaseTransport import BaseTransport
117
from DIRAC.FrameworkSystem.Client.Logger import gLogger
128
from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK

src/DIRAC/Core/DISET/private/Transports/test/Test_SSLTransport.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
""" Test the SSLTransport mechanism """
22
import os
3-
import socket
3+
import selectors
44
import threading
55

6-
try:
7-
import selectors
8-
except ImportError:
9-
import selectors2 as selectors
10-
116
from pytest import fixture
127

138
from diraccfg import CFG

0 commit comments

Comments
 (0)