Skip to content

Commit

Permalink
style: import ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 4, 2023
1 parent 3e18651 commit dac6814
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 23 deletions.
7 changes: 4 additions & 3 deletions src/DIRAC/ConfigurationSystem/Client/Helpers/Operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
but this works iff the object is instantiated by a proxy (and not, e.g., using a server certificate)
"""
import os
import _thread

from diraccfg import CFG
from DIRAC import S_OK, S_ERROR, gConfig
from DIRAC.ConfigurationSystem.Client.Helpers import Registry, CSGlobals

from DIRAC import S_ERROR, S_OK
from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData
from DIRAC.ConfigurationSystem.Client.Helpers import CSGlobals, Registry
from DIRAC.Core.Security.ProxyInfo import getVOfromProxyGroup
from DIRAC.Core.Utilities import LockRing
from DIRAC.Core.Utilities.DErrno import ESECTION
Expand Down
7 changes: 3 additions & 4 deletions src/DIRAC/Core/Utilities/Shifter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
"""
import os

from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC import S_ERROR, S_OK, gLogger
from DIRAC.ConfigurationSystem.Client.Helpers import Registry, cfgPath
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
from DIRAC.Core.Utilities.File import mkDir
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
from DIRAC.ConfigurationSystem.Client.Helpers import cfgPath
from DIRAC.ConfigurationSystem.Client.Helpers import Registry


def getShifterProxy(shifterType, fileName=False):
Expand Down
16 changes: 7 additions & 9 deletions src/DIRAC/WorkloadManagementSystem/Client/Matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@
"""
import time

from DIRAC import gLogger, convertToPy3VersionNumber

from DIRAC.Core.Utilities.PrettyPrint import printDict
from DIRAC.Core.Security import Properties
from DIRAC import convertToPy3VersionNumber, gLogger
from DIRAC.ConfigurationSystem.Client.Helpers import Registry
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
from DIRAC.WorkloadManagementSystem.Client import JobStatus
from DIRAC.Core.Security import Properties
from DIRAC.Core.Utilities.PrettyPrint import printDict
from DIRAC.ResourceStatusSystem.Client.SiteStatus import SiteStatus
from DIRAC.WorkloadManagementSystem.Client import JobStatus, PilotStatus
from DIRAC.WorkloadManagementSystem.Client.Limiter import Limiter
from DIRAC.WorkloadManagementSystem.Client import PilotStatus
from DIRAC.WorkloadManagementSystem.DB.TaskQueueDB import TaskQueueDB, singleValueDefFields, multiValueMatchFields
from DIRAC.WorkloadManagementSystem.DB.PilotAgentsDB import PilotAgentsDB
from DIRAC.WorkloadManagementSystem.DB.JobDB import JobDB
from DIRAC.WorkloadManagementSystem.DB.JobLoggingDB import JobLoggingDB
from DIRAC.ResourceStatusSystem.Client.SiteStatus import SiteStatus
from DIRAC.WorkloadManagementSystem.DB.PilotAgentsDB import PilotAgentsDB
from DIRAC.WorkloadManagementSystem.DB.TaskQueueDB import TaskQueueDB, multiValueMatchFields, singleValueDefFields


class PilotVersionError(Exception):
Expand Down
6 changes: 2 additions & 4 deletions src/DIRAC/WorkloadManagementSystem/Service/MatcherHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
It uses a Matcher and a Limiter object that encapsulates the matching logic.
It connects to JobDB, TaskQueueDB, JobLoggingDB, and PilotAgentsDB.
"""
from DIRAC import S_OK, S_ERROR

from DIRAC import S_ERROR, S_OK
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
from DIRAC.Core.DISET.RequestHandler import RequestHandler
from DIRAC.Core.Utilities import DErrno
from DIRAC.Core.Utilities.DEncode import ignoreEncodeWarning
from DIRAC.Core.Utilities.ObjectLoader import ObjectLoader

from DIRAC.WorkloadManagementSystem.Client.Matcher import Matcher, PilotVersionError
from DIRAC.WorkloadManagementSystem.Client.Limiter import Limiter
from DIRAC.WorkloadManagementSystem.Client.Matcher import Matcher, PilotVersionError


class MatcherHandlerMixin:
Expand Down
4 changes: 2 additions & 2 deletions src/DIRAC/WorkloadManagementSystem/private/ConfigHelper.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
""" A set of utilities for getting configuration information for the WMS components
"""
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC import S_ERROR, S_OK, gLogger
from DIRAC.ConfigurationSystem.Client.Helpers import Operations, Registry
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
from DIRAC.ConfigurationSystem.Client.Helpers import Registry, Operations


def findGenericPilotCredentials(vo=False, group=False, pilotDN="", pilotGroup=""):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"""

from DIRAC import S_OK, S_ERROR, gLogger, exit as DIRACExit
from DIRAC import S_ERROR, S_OK, gLogger
from DIRAC import exit as DIRACExit
from DIRAC.Core.Base.Script import Script


Expand Down

0 comments on commit dac6814

Please sign in to comment.