Skip to content

Commit 144bf4f

Browse files
authored
Merge pull request cms-sw#35643 from davidlange6/dl211013
update edmPickEvents for python3
2 parents 84d2e74 + 5f12955 commit 144bf4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PhysicsTools/Utilities/scripts/edmPickEvents.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import sys
1212
import optparse
1313
import re
14-
import commands
14+
1515
from FWCore.PythonUtilities.LumiList import LumiList
1616
import json
1717
from pprint import pprint
@@ -151,8 +151,8 @@ def fullCPMpath():
151151
raise RuntimeError("Could not find copyPickMerge_cfg.py")
152152

153153
def guessEmail():
154-
return '%s@%s' % (commands.getoutput ('whoami'),
155-
'.'.join(commands.getoutput('hostname').split('.')[-2:]))
154+
return '%s@%s' % (subprocess.getoutput ('whoami'),
155+
'.'.join(subprocess.getoutput('hostname').split('.')[-2:]))
156156

157157
def setupCrabDict (options):
158158
date = datetime.now().strftime('%Y%m%d_%H%M%S')

0 commit comments

Comments
 (0)