Python: Fix a conditional expression that requires Python 2.5
Python: Fix a conditional expression that requires Python 2.5

This patch changes a conditional expression to a conventional if/else
block, which does not require Python >= 2.5.

HwisooSo/gemV-update,HwisooSo/gemV-update,joerocklin/gem5,kaiyuanl/gem5,sobercoder/gem5,TUD-OS/gem5-dtu,kaiyuanl/gem5,kaiyuanl/gem5,HwisooSo/gemV-update,TUD-OS/gem5-dtu,aclifton/cpeg853-gem5,HwisooSo/gemV-update,gedare/gem5,powerjg/gem5-ci-test,sobercoder/gem5,briancoutinho0905/2dsampling,TUD-OS/gem5-dtu,yb-kim/gemV,zlfben/gem5,Weil0ng/gem5,KuroeKurose/gem5,gedare/gem5,HwisooSo/gemV-update,gem5/gem5,Weil0ng/gem5,rallylee/gem5,gem5/gem5,austinharris/gem5-riscv,yb-kim/gemV,joerocklin/gem5,samueldotj/TeeRISC-Simulator,yb-kim/gemV,powerjg/gem5-ci-test,cancro7/gem5,qizenguf/MLC-STT,sobercoder/gem5,gedare/gem5,kaiyuanl/gem5,briancoutinho0905/2dsampling,SanchayanMaity/gem5,KuroeKurose/gem5,gedare/gem5,rallylee/gem5,gedare/gem5,markoshorro/gem5,Weil0ng/gem5,gem5/gem5,gem5/gem5,zlfben/gem5,HwisooSo/gemV-update,joerocklin/gem5,cancro7/gem5,samueldotj/TeeRISC-Simulator,TUD-OS/gem5-dtu,briancoutinho0905/2dsampling,austinharris/gem5-riscv,kaiyuanl/gem5,powerjg/gem5-ci-test,SanchayanMaity/gem5,SanchayanMaity/gem5,sobercoder/gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,cancro7/gem5,samueldotj/TeeRISC-Simulator,KuroeKurose/gem5,kaiyuanl/gem5,rjschof/gem5,joerocklin/gem5,aclifton/cpeg853-gem5,markoshorro/gem5,markoshorro/gem5,TUD-OS/gem5-dtu,yb-kim/gemV,SanchayanMaity/gem5,joerocklin/gem5,briancoutinho0905/2dsampling,yb-kim/gemV,yb-kim/gemV,rjschof/gem5,powerjg/gem5-ci-test,rjschof/gem5,KuroeKurose/gem5,Weil0ng/gem5,sobercoder/gem5,cancro7/gem5,zlfben/gem5,rallylee/gem5,gem5/gem5,austinharris/gem5-riscv,markoshorro/gem5,yb-kim/gemV,austinharris/gem5-riscv,rallylee/gem5,gedare/gem5,rjschof/gem5,rjschof/gem5,zlfben/gem5,sobercoder/gem5,samueldotj/TeeRISC-Simulator,briancoutinho0905/2dsampling,joerocklin/gem5,aclifton/cpeg853-gem5,gem5/gem5,rjschof/gem5,powerjg/gem5-ci-test,qizenguf/MLC-STT,qizenguf/MLC-STT,KuroeKurose/gem5,gem5/gem5,Weil0ng/gem5,HwisooSo/gemV-update,joerocklin/gem5,aclifton/cpeg853-gem5,qizenguf/MLC-STT,cancro7/gem5,briancoutinho0905/2dsampling,gedare/gem5,zlfben/gem5,markoshorro/gem5,samueldotj/TeeRISC-Simulator,SanchayanMaity/gem5,kaiyuanl/gem5,powerjg/gem5-ci-test,Weil0ng/gem5,SanchayanMaity/gem5,samueldotj/TeeRISC-Simulator,joerocklin/gem5,rallylee/gem5,zlfben/gem5,qizenguf/MLC-STT,markoshorro/gem5,cancro7/gem5,yb-kim/gemV,samueldotj/TeeRISC-Simulator,rallylee/gem5,austinharris/gem5-riscv,austinharris/gem5-riscv,qizenguf/MLC-STT,SanchayanMaity/gem5,briancoutinho0905/2dsampling,aclifton/cpeg853-gem5,Weil0ng/gem5,powerjg/gem5-ci-test,rjschof/gem5,sobercoder/gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,markoshorro/gem5,qizenguf/MLC-STT,TUD-OS/gem5-dtu,KuroeKurose/gem5,zlfben/gem5,rallylee/gem5,cancro7/gem5,austinharris/gem5-riscv