I am trying to run my script from Jenkins which has Python 2.6 installed. My script was originally written on a Linux machine which uses 2.7.5. Whenever I run the script form my local machine it works fine, but when I try to run it from Jenkins, it throws a syntax error for the following code:
rpmDict = {rpmList[i]: rpmList_full[i] for i in range (len(rpmList))}
rpmDataDict = {rpmDataTextList[i]: rpmDataTextList_full[i] for i in range (len(rpmDataTextList))}
Can someone help me translate this to 2.6 syntax?