Skip to content

Commit

Permalink
style: removed some unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 29, 2024
1 parent 46ba692 commit 8f797f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
6 changes: 1 addition & 5 deletions src/DIRAC/Core/Security/IAMService.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

import requests

from DIRAC import gConfig, gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrno
from DIRAC.Core.Security.Locations import getProxyLocation, getCAsLocation
from DIRAC.Core.Utilities.Decorators import deprecated
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOOption
from DIRAC import S_OK, gConfig, gLogger
from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import getVO


Expand Down
2 changes: 1 addition & 1 deletion src/DIRAC/Core/Security/Properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import operator
from enum import Enum
from typing import Callable, Union
from typing import Callable


class SecurityProperty(str, Enum):
Expand Down
11 changes: 5 additions & 6 deletions src/DIRAC/Core/Security/VOMS.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
""" Module for dealing with VOMS (Virtual Organization Membership Service)
"""

from datetime import datetime
import os
import tempfile
import shlex
import shutil
import tempfile
from datetime import datetime

from DIRAC import S_OK, S_ERROR, gConfig, rootPath, gLogger
from DIRAC.Core.Utilities import DErrno
from DIRAC import S_ERROR, S_OK, gConfig
from DIRAC.Core.Security import Locations
from DIRAC.Core.Security.ProxyFile import multiProxyArgument, deleteMultiProxy
from DIRAC.Core.Security.ProxyFile import deleteMultiProxy, multiProxyArgument
from DIRAC.Core.Security.X509Chain import X509Chain # pylint: disable=import-error
from DIRAC.Core.Utilities import DErrno, List
from DIRAC.Core.Utilities.Subprocess import shellCall
from DIRAC.Core.Utilities import List

# This is a variable so it can be monkeypatched in tests
VOMS_PROXY_INIT_CMD = "voms-proxy-init"
Expand Down
9 changes: 4 additions & 5 deletions src/DIRAC/Core/Security/VOMSService.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@

import requests

from DIRAC import gConfig, gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrno
from DIRAC.Core.Security.Locations import getProxyLocation, getCAsLocation
from DIRAC.Core.Utilities.Decorators import deprecated
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOOption
from DIRAC import S_ERROR, S_OK, gConfig, gLogger
from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import getVO
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOOption
from DIRAC.Core.Security.Locations import getCAsLocation, getProxyLocation
from DIRAC.Core.Utilities import DErrno


class VOMSService:
Expand Down

0 comments on commit 8f797f0

Please sign in to comment.