Skip to content

Commit

Permalink
Fix python2.6 SyntaxError.
Browse files Browse the repository at this point in the history
FWCore/ParameterSet/python/Mixins.py uses syntax that is not valid
in python2.6; breaks ability to import this file in current CMSSW_7_6_X
(and hence submit to CRAB).
  • Loading branch information
bbockelm committed Aug 24, 2015
1 parent 37107a0 commit 059a3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/python/Mixins.py
Expand Up @@ -711,7 +711,7 @@ class __DummyModule(object):
def __init__(self):
self.tLPTest = tLPTest
self.tLPTestType = tLPTestType
p = tLPTest("MyType",** { "a"+str(x): tLPTestType(x) for x in xrange(0,300) } )
p = tLPTest("MyType",** dict( [ ("a"+str(x), tLPTestType(x)) for x in xrange(0,300) ] ) )
#check they are the same
self.assertEqual(p.dumpPython(), eval(p.dumpPython(),{"cms": __DummyModule()}).dumpPython())
unittest.main()

0 comments on commit 059a3e8

Please sign in to comment.