Skip to content

Commit 78307a5

Browse files
committed
fix: removed __RCSID__ lookup
1 parent 097499f commit 78307a5

File tree

7 files changed

+3
-75
lines changed

7 files changed

+3
-75
lines changed

src/DIRAC/Core/Base/AgentModule.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def am_initialize(self, *initArgs):
199199
self.log.notice("Loaded agent module %s" % self.__moduleProperties["fullName"])
200200
self.log.notice(" Site: %s" % DIRAC.siteName())
201201
self.log.notice(" Setup: %s" % gConfig.getValue("/DIRAC/Setup"))
202-
self.log.notice(" Base Module version: %s " % __RCSID__)
203202
self.log.notice(" Agent version: %s" % self.__codeProperties["version"])
204203
self.log.notice(" DIRAC version: %s" % DIRAC.version)
205204
self.log.notice(" DIRAC platform: %s" % DIRAC.getPlatform())

src/DIRAC/Core/Base/Script.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
33
And don't forget to call parseCommandLine()
44
"""
5-
from __future__ import absolute_import
6-
from __future__ import division
7-
from __future__ import print_function
8-
9-
__RCSID__ = "$Id$"
10-
115
import sys
126
import os.path
137
import inspect

src/DIRAC/FrameworkSystem/Client/ProxyGeneration.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22
# File : ProxyGeneration.py
33
# Author : Adrian Casajus
44
########################################################################
5-
from __future__ import division
6-
from __future__ import absolute_import
7-
from __future__ import print_function
8-
95
import sys
106
from prompt_toolkit import prompt
117
from DIRAC import S_OK, S_ERROR, gLogger
128
from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script
139
from DIRAC.Core.Utilities.NTP import getClockDeviation
1410

15-
__RCSID__ = "$Id$"
16-
1711

18-
class CLIParams(object):
12+
class CLIParams:
1913

2014
proxyLifeTime = 86400
2115
diracGroup = False
@@ -204,17 +198,6 @@ def setStrict(self, _arg):
204198
self.strict = True
205199
return S_OK()
206200

207-
def showVersion(self, _arg):
208-
"""Show version
209-
210-
:param _arg: unuse
211-
212-
:return: S_OK()
213-
"""
214-
gLogger.always("Version: %s" % __RCSID__)
215-
sys.exit(0)
216-
return S_OK()
217-
218201
def disableClockCheck(self, _arg):
219202
"""Disable clock check
220203
@@ -240,7 +223,6 @@ def registerCLISwitches(self):
240223
Script.registerSwitch("u:", "out=", "File to write as proxy", self.setProxyLocation)
241224
Script.registerSwitch("x", "nocs", "Disable CS check", self.setDisableCSCheck)
242225
Script.registerSwitch("p", "pwstdin", "Get passwd from stdin", self.setStdinPasswd)
243-
Script.registerSwitch("i", "version", "Print version", self.showVersion)
244226
Script.registerSwitch("j", "noclockcheck", "Disable checking if time is ok", self.disableClockCheck)
245227
Script.registerSwitch("r", "rfc", "Create an RFC proxy, true by default, deprecated flag", self.setRFC)
246228
Script.registerSwitch("L", "legacy", "Create a legacy non-RFC proxy", self.setNoRFC)

src/DIRAC/FrameworkSystem/Client/ProxyUpload.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@
33
# Author : Adrian Casajus
44
########################################################################
55

6-
from __future__ import print_function
7-
from __future__ import absolute_import
8-
from __future__ import division
96
import sys
107
from prompt_toolkit import prompt
118
import DIRAC
129

1310
from DIRAC import gLogger
1411
from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script
1512

16-
__RCSID__ = "$Id$"
1713

18-
19-
class CLIParams(object):
14+
class CLIParams:
2015

2116
proxyLifeTime = 2592000
2217
certLoc = False
@@ -78,12 +73,6 @@ def setStdinPasswd(self, arg):
7873
self.stdinPasswd = True
7974
return DIRAC.S_OK()
8075

81-
def showVersion(self, arg):
82-
gLogger.notice("Version:")
83-
gLogger.notice(" ", __RCSID__)
84-
sys.exit(0)
85-
return DIRAC.S_OK()
86-
8776
def registerCLISwitches(self):
8877
Script.registerSwitch(
8978
"v:", "valid=", "Valid HH:MM for the proxy. By default is one month", self.setProxyLifeTime
@@ -93,7 +82,6 @@ def registerCLISwitches(self):
9382
Script.registerSwitch("P:", "Proxy=", "File to use as proxy", self.setProxyLocation)
9483
Script.registerSwitch("f", "onthefly", "Generate a proxy on the fly", self.setOnTheFly)
9584
Script.registerSwitch("p", "pwstdin", "Get passwd from stdin", self.setStdinPasswd)
96-
Script.registerSwitch("i", "version", "Print version", self.showVersion)
9785
Script.addDefaultOptionValue("LogLevel", "always")
9886

9987

src/DIRAC/FrameworkSystem/scripts/dirac_myproxy_upload.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
# File : dirac-proxy-init.py
44
# Author : Adrian Casajus
55
########################################################################
6-
7-
from __future__ import print_function
8-
from __future__ import absolute_import
9-
from __future__ import division
10-
11-
__RCSID__ = "$Id$"
12-
136
import sys
147
import DIRAC
158
from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script
@@ -27,20 +20,13 @@ def setDNAsUsername(self, arg):
2720
self.dnAsUsername = True
2821
return DIRAC.S_OK()
2922

30-
def showVersion(self, arg):
31-
print("Version:")
32-
print(" ", __RCSID__)
33-
sys.exit(0)
34-
return DIRAC.S_OK()
35-
3623

3724
@Script()
3825
def main():
3926
params = Params()
4027

4128
Script.registerSwitch("f:", "file=", "File to use as proxy", params.setProxyLocation)
4229
Script.registerSwitch("D", "DN", "Use DN as myproxy username", params.setDNAsUsername)
43-
Script.registerSwitch("i", "version", "Print version", params.showVersion)
4430

4531
Script.addDefaultOptionValue("LogLevel", "always")
4632
Script.parseCommandLine()

src/DIRAC/FrameworkSystem/scripts/dirac_proxy_info.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
VOMS : True
1919
VOMS fqan : ['/formation']
2020
"""
21-
from __future__ import print_function
22-
from __future__ import absolute_import
23-
from __future__ import division
24-
25-
__RCSID__ = "$Id$"
26-
2721
import sys
2822

2923
from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script
@@ -40,12 +34,6 @@ class Params(object):
4034
checkClock = True
4135
uploadedInfo = False
4236

43-
def showVersion(self, arg):
44-
print("Version:")
45-
print(" ", __RCSID__)
46-
sys.exit(0)
47-
return S_OK()
48-
4937
def setProxyLocation(self, arg):
5038
self.proxyLoc = arg
5139
return S_OK()
@@ -80,7 +68,6 @@ def main():
8068
params = Params()
8169

8270
Script.registerSwitch("f:", "file=", "File to use as user key", params.setProxyLocation)
83-
Script.registerSwitch("i", "version", "Print version", params.showVersion)
8471
Script.registerSwitch("n", "novoms", "Disable VOMS", params.disableVOMS)
8572
Script.registerSwitch("v", "checkvalid", "Return error if the proxy is invalid", params.validityCheck)
8673
Script.registerSwitch("x", "nocs", "Disable CS", params.disableCS)

src/DIRAC/WorkloadManagementSystem/JobWrapper/JobWrapper.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
:caption: JobWrapper options
1111
1212
"""
13-
14-
from __future__ import print_function
15-
from __future__ import absolute_import
16-
from __future__ import division
17-
18-
__RCSID__ = "$Id$"
19-
2013
import os
2114
import stat
2215
import re
@@ -70,7 +63,7 @@
7063
EXECUTION_RESULT = {}
7164

7265

73-
class JobWrapper(object):
66+
class JobWrapper:
7467
"""The only user of the JobWrapper is the JobWrapperTemplate"""
7568

7669
#############################################################################
@@ -135,7 +128,6 @@ def __init__(self, jobID=None, jobReport=None):
135128
self.dm = DataManager()
136129
self.fc = FileCatalog()
137130
self.log.verbose("===========================================================================")
138-
self.log.verbose("Version %s" % (__RCSID__))
139131
self.log.verbose(self.diracVersion)
140132
self.currentPID = os.getpid()
141133
self.log.verbose("Job Wrapper started under PID: %s" % self.currentPID)

0 commit comments

Comments
 (0)