Skip to content

Commit 50bfde0

Browse files
committed
fix: removed __RCSID__
1 parent b274b2c commit 50bfde0

36 files changed

+66
-87
lines changed

src/DIRAC/Core/Base/AgentModule.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AgentModule:
6767
def __init__(self, agentName, loadName, baseAgentName=False, properties={}):
6868
"""
6969
Common __init__ method for all Agents.
70-
All Agent modules must define: __doc__
70+
All Agent modules must define: __doc__
7171
7272
They are used to populate __codeProperties
7373
@@ -146,26 +146,26 @@ def __init__(self, agentName, loadName, baseAgentName=False, properties={}):
146146
self.__monitorLastStatsUpdate = -1
147147
self.monitor = None
148148
self.__initializeMonitor()
149-
self.__initialized = False
149+
self.__initialized = False
150150

151151
def __getCodeInfo(self):
152152

153-
try:
154-
self.__codeProperties["version"] = importlib.metadata.version(
155-
inspect.getmodule(self).__package__.split(".")[0]
156-
)
157-
except Exception:
158-
self.log.exception(f"Failed to find version for {self!r}")
159-
self.__codeProperties["version"] = "unset"
160-
try:
161-
self.__agentModule = __import__(self.__class__.__module__, globals(), locals(), "__doc__")
162-
except Exception as excp:
153+
try:
154+
self.__codeProperties["version"] = importlib.metadata.version(
155+
inspect.getmodule(self).__package__.split(".")[0]
156+
)
157+
except Exception:
158+
self.log.exception(f"Failed to find version for {self!r}")
159+
self.__codeProperties["version"] = "unset"
160+
try:
161+
self.__agentModule = __import__(self.__class__.__module__, globals(), locals(), "__doc__")
162+
except Exception as excp:
163163
self.log.exception("Cannot load agent module", lException=excp)
164-
try:
165-
self.__codeProperties["description"] = getattr(self.__agentModule, "__doc__")
166-
except Exception:
167-
self.log.error("Missing property __doc__")
168-
self.__codeProperties["description"] = "unset"
164+
try:
165+
self.__codeProperties["description"] = getattr(self.__agentModule, "__doc__")
166+
except Exception:
167+
self.log.error("Missing property __doc__")
168+
self.__codeProperties["description"] = "unset"
169169
self.__codeProperties["DIRACVersion"] = DIRAC.version
170170
self.__codeProperties["platform"] = DIRAC.getPlatform()
171171

src/DIRAC/WorkloadManagementSystem/Agent/CloudDirector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CloudDirector(AgentModule):
2929
"""
3030

3131
def __init__(self, *args, **kwargs):
32-
super().__init__(*args, **kwargs)
32+
super().__init__(*args, **kwargs)
3333
self.vmTypeDict = {}
3434
self.vmTypeCECache = {}
3535
self.vmTypeSlots = {}

src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class JobCleaningAgent(AgentModule):
4747

4848
def __init__(self, *args, **kwargs):
4949
"""c'tor"""
50-
super().__init__(*args, **kwargs)
50+
super().__init__(*args, **kwargs)
5151

5252
# clients
5353
self.jobDB = None

src/DIRAC/WorkloadManagementSystem/Agent/PilotStatusAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PilotStatusAgent(AgentModule):
3232

3333
def __init__(self, *args, **kwargs):
3434
"""c'tor"""
35-
super().__init__(*args, **kwargs)
35+
super().__init__(*args, **kwargs)
3636

3737
self.jobDB = None
3838
self.pilotDB = None

src/DIRAC/WorkloadManagementSystem/Agent/PilotSyncAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PilotSyncAgent(AgentModule):
2525

2626
def __init__(self, *args, **kwargs):
2727
"""c'tor"""
28-
super().__init__(*args, **kwargs)
28+
super().__init__(*args, **kwargs)
2929

3030
# This location would be enough if we are running this agent on the DIRAC web server
3131
# '/opt/dirac/webRoot/www/pilot'

src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SiteDirector(AgentModule):
5151

5252
def __init__(self, *args, **kwargs):
5353
"""c'tor"""
54-
super().__init__(*args, **kwargs)
54+
super().__init__(*args, **kwargs)
5555

5656
# on-the fly imports
5757
ol = ObjectLoader()

src/DIRAC/WorkloadManagementSystem/Agent/StalledJobAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class StalledJobAgent(AgentModule):
3333

3434
def __init__(self, *args, **kwargs):
3535
"""c'tor"""
36-
super().__init__(*args, **kwargs)
36+
super().__init__(*args, **kwargs)
3737

3838
self.jobDB = None
3939
self.logDB = None

src/DIRAC/WorkloadManagementSystem/Agent/TaskQueuesAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TaskQueuesAgent(AgentModule):
1717

1818
def __init__(self, *args, **kwargs):
1919
"""c'tor"""
20-
super().__init__(*args, **kwargs)
20+
super().__init__(*args, **kwargs)
2121

2222
# clients
2323
self.tqDB = None

src/DIRAC/WorkloadManagementSystem/Client/CPUNormalization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
from DIRAC.ConfigurationSystem.Client.Helpers.Resources import getCESiteMapping
2020
from DIRAC.Resources.Computing.BatchSystems.TimeLeft.TimeLeft import TimeLeft
2121

22-
__RCSID__ = "$Id$"
23-
2422
# TODO: This should come from some place in the configuration
2523
NORMALIZATIONCONSTANT = 60.0 / 250.0 # from minutes to seconds and from SI00 to HS06 (ie min * SI00 -> sec * HS06 )
2624

src/DIRAC/WorkloadManagementSystem/Client/DownloadInputData.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
from __future__ import division
1212
from __future__ import print_function
1313

14-
__RCSID__ = "$Id$"
15-
1614
import os
1715
import tempfile
1816
import random

0 commit comments

Comments
 (0)